Here i will share some useful information about jquery($) variables,how to declare variables,how to pass the variables ,how to execute any script after the DOM loading will be completed and what is $ symbol in jquery.The $ symbol is used to initialize the jquery object.Now i will show how to the initialize jquery object.we can use the $ or Jquery to pass a selector ,because both will give same result
Jquery("#Id") or $("#Id")In the above example i will get the id of the element using jquery object.We will have to know that most Javascript programmers are added some code to their program when the page is loaded.
window.onload = function(){ alert("Test Jquery"); }When we try to run your code at page loading using JavaScript with onload function,it will execute after load images of the page.So To avoid this problem jquery gives a statement to check the page loading concept.
$(document).ready(function() { //logic });
No comments:
Post a Comment