Jquery Questions
Jquery Questions
Jquery Questions
No, jQuery HTML only works for HTML documents not for XML Documents.
Show()
Hide()
Toggle()
FadeIn() and
FadeOut()
jQuery is a library of JavaScript file and it consists of DOM, event effects and the
Ajax functions. jQuery is said to be a single JavaScript file.
Mac, Windows and Linux are more compatible with the jQuery.
Apply CSS static or dynamic
Calling functions on events
Manipulation purpose
Mainly for Animation effects
Find method is used to find all levels down the DOM tree but children find single
level down the DOM tree.
A ‘ jQuery connect’ is a plugin used to connect or bind a function with another
function. Connect is used to execute function from any other function or plugin is
executed.
Connect can be used by downloading jQuery connect file from jQuery.com and
then include that file in the HTML file. Use $.connect function to connect a
function to another function.
14. What are the features of jQuery, has been used in web applications?
jQuery uses features like Sliding, File uploading and accordian in web
applications.
15. What are the browser related issues for jQuery?
Browser compatibility of jQuery plugin is an issue and needs lot of time to fix it.
16. Whether we need to add jQuery file in both Master and Content page?
jQuery file should be added to the Master page and can use access from the
content page directly without having any reference to it.
Element ID
CSS Name
Tag Name
DOM hierarchy
jQuery.data methods is used to associate the data with the DOM nodes and the
objects. This data method makes the jQuery code clear and concise.
Each function is used to iterate each and every element of an object. It is used to
loop DOM elements, arrays and the object properties.
Size and length both returns the number of element in an object. But length is
faster than the size because length is a property and size is a method.
22. Can we add more than one ‘document.ready’ function in a page?
Yes, we can add more than one document.ready function in a page. But,
body.onload can be added once in a page.
jQuery load method is a powerful AJAX method which is used to load the data
from a server and assign the data into the element without loading the page.
24. Whether our own specific characters are used in place of $ in jQuery?
Yes, We can use our own variable in place of $ by using the method called no
Conflict () method.
25. What are the four parameters used for jQuery Ajax method?
The jQuery filter is used to filter the certain values from the object list based on
the criteria. Example is to filter certain products from the master list of products
in a cart website.
jQuery is a Javascript file and it is single javascript file that contains common
DOM, event effects and Ajax functions.
Debugger keyword
Add the debugger to the line from where we have to start debugging and
then run Visual Studio in Debug mode with F5 function key.
Insert a break point after attaching the process
34. What are all the ways to include jQuery in a page?
jQuery data method is used to associate data with DOM nodes and JavaScript
objects. This method will make a code very concise and neat.
In a page, we can have only one onload function but we can have more than one
document.ready function. Document.ready function is called when DOM is
loaded but onload function is called when DOM and images are loaded on the
page.
jQuery each function is used to loop through each and every element of the
target jQuery object. It is also useful for multi element DOM, looping arrays and
object properties.
44. How method can be called inside code behind using jQuery?
$.ajax can be called and by declaring WebMethod inside code behind using
jQuery.
48. What is the method used to define the specific character in place of $
sign?
jQuery is a library used for developing Ajax application and it helps to write the
code clean and concise. It also handles events, animation and Ajax support
applications.
CSS Selector
XPath Selector
Custom Selector