What is the difference between $('.abc') and $(".abc") in jQuery?
Example:
var main = function() {
$('.btn').click(function(event) {
$('.container').hide();
});
};
vs
var main = function() {
$(".btn").click(function(event) {
$(".container").hide();
});
};
Both of the code snippets work well. So what is different?