What do Dollar ($) sign significance in jQuery?Explain

 Dollar Sign is nonetheless an alias for JQuery. You can write jQuery syntax using $ sign or jQuery.
This can also be called Selector($).
This can be called as an expression for identifying target elements on a page that allows  to easily identify and also  grab elements required.
The below 2 syntaxes are the same to create a function using jQuery.
To collect a group of elements, we use the simple syntax $(selector) or jQuery(selector).
view sourceprint?
$(document).ready(function()
{
   
});
OR
view sourceprint?
jQuery(document).ready(function()
{

});
Example for a Hyperlink Click
view sourceprint?
1.$("a").click(function() {});

0 comments:

Post a Comment