jQuery is a cross-browser JavaScript library designed to simplify the client-side scripting of HTML
A blog on Selenium WebDriver, Java, VB Script, Software Testing, SOAPUI, Groovy, SOA Testing, Mobile Testing, Appium etc.
Friday, 9 August 2013
Is There Any Differnce Between $(document).ready(function() and $(function()
Both represent the same.
$(function() is shorthand representation of $(document).ready(function()
$(function() is shorthand representation of $(document).ready(function()
What is the Diference Difference Between Document.ready and Window.onload
The main difference is that document.ready() event gets called as soon as your DOM is loaded. It does not wait for the contents to get loaded fully, while window.onload will wait until all your contents are loaded fully
We can have more than one document.ready() function in a page where we can have only one onload function.
What Are the Features of Jquery
JQuery features are as follows -
- jQuery is free, open source software.
- jQuery’s syntax is designed to make it easier to navigate a document, select DOM elements, create animations, handle events, and develop Ajax applications
- Extensibility through plug-ins
- Cross-browser support
What Does $ Represent in Jquery
Dollar Sign is nothing but it’s an alias for JQuery, You can either write JQuery or $
Subscribe to:
Posts (Atom)