1) What is Jquery?
Jquery is javascript library and it is used for HTML DOM access (manipulating and traversing of HTML DOM elements). It provides most powerful feature of event handling as well.
2) Explain we can use Jquery?
Jquery can be used along with other libraries. It works with simple and complex javascript and AJAX.
3) How we can use Jquery in ASP.NET?
We can use Jquery by downloading the jquery and use it in our project or can use CDNs available from Google, Microsoft and give the CDN URL in ASPX page.
4) Explain difference between Jquery and Javascript?
Jquery is a library and Javascript is a language and Jquery provides full-fledged support for javascript language.
5) What is the significance of ‘$’ sign in Jquery?
‘$’ is used as an alias for jquery. Below are the examples of how we can use it –
Eg: $(‘#MyControl’)
6) What are the differences between “body.onload” and “document.ready” methods?
- “body.onload” method will be used only once in a page where as “document.ready” method can be used multiple times in a same page. “body.onload” method will be called once all the resources of the page are loaded. (images, css and DOM).
- But “document.ready” method called once DOM is ready and it does not wait till other resources are loaded.
- Below are the main reasons where we can use Jquery –
- To apply the css for the controls.
- To give special effects for the controls.
- Event Handling.
- To provide the AJAX support.
8) How we can hide and show the controls in Jquery?Access the control using ‘$’ and use the methods “Hide()” and “Show()” like below. For example –$(‘#MyControl’).Hide() $(‘#MyControl’).Show()
No comments:
Post a Comment