How do you check if an element exists or not in jQuery?
Answer / chaitanya
Using jQuery length property, we can ensure whether element exists or not.
Hide Copy Code
$(document).ready(function(){
if ($('#element').length > 0){
//Element exists
}
});
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain various methods to make ajax request in jquery? : jquery mobile
Tell me do I need to add the jquery file both at the master page and content page as well?
Explain type paremeter of jquery ajax method?
What is jquery.holdready() function?
Mention the differences between javascript and jquery.
Explain the animate function.
How we can hide a block of html code on a button click using jquery?
What is difference between onload and ready?
What are the different ways of using $.connect function in jquery?
How can events be prevented to work after an ajax request?
How do you select an item using css class or id and get the value by use of jquery.
What is $('div')? : jquery mobile