$() is used a lot
$(document) is used to point to the HTML document
$('p') is used to point to <p> tag in the HTML document.
$(this) is used to point to the current HTML element.
Example::
$(document).ready( function() {
# function takes a block that will execute a sequence of code.
});
- when you want to apply action to a class , you do not need the syntax $('.class'). Instead , $('class') is sufficed.
$(document) is used to point to the HTML document
$('p') is used to point to <p> tag in the HTML document.
$(this) is used to point to the current HTML element.
Example::
$(document).ready( function() {
# function takes a block that will execute a sequence of code.
});
- when you want to apply action to a class , you do not need the syntax $('.class'). Instead , $('class') is sufficed.
Comments
Post a Comment