These are very common jQuery interview questions which is generally asked in interview. I try to answer very sort and correct that's why you can remember it easily.
What is jQuery?
jQuery is a fast, small, and feature-rich JavaScript library. jQuery simplifies HTML document traversing, event handling, animating, and Ajax request for website development.
Why we use jquery
jQuery is easy to learn as well as very simple to use. It is browser independent. It makes your application dynamic at client side. jQuery is a very fast and small. It save dozens of lines of code.
What are jQuery Selectors?
jQuery selectors used to catch the particular html element which we will manipulate.
What is callback?
A callback is a plain JavaScript function passed to some method as an argument or option. Generally we called this function when a certain task has been completed.
What is difference between .on() and .bind()?
The .bind() method attach the same event handler to every matched element by the selector. It doesn't work for dynamically added elements. Where as .on() method work for dynamically added elements. It is good when dealing with a large selection.
What are the different type of selectors in jquery?
There are many type selectors in jQuery but the most popular are:
1. ID selector
2. Class selector
3. Element selector
4. Attribute selector
5. :checked selector
1. ID selector
2. Class selector
3. Element selector
4. Attribute selector
5. :checked selector
What is difference between $(this) and this keyword in jQuery?
this refers to a to a DOM element and $(this) refers to a jQuery object.
What is difference between detach() and remove() method in jQuery?
remove()
This function remove all elements in the wrapped set from the page DOM.
detach()
This function work same like remove() method but it not remove the event of that element.
This function remove all elements in the wrapped set from the page DOM.
detach()
This function work same like remove() method but it not remove the event of that element.
How do you add and remove class to an element using jQuery?
To add a class we use addClass('classname') method and to remove a class we use removeClass('classname') method.
What is difference between == and ===
When we use triple equal it also check the their type(data type).
1 == "1" // true.
1 === "1" // false
1 == "1" // true.
1 === "1" // false
What is difference between parents and closest in jquery?
closest() return the first element that matches the selector where as parents return all element that matches the selector
. Both travel up the DOM tree.
. Both travel up the DOM tree.
What is difference between parent and parents in jquery
parent() return just the parent element where as parents return all element that matches the selector.
What is event bubbling?
When any event fire on a particular element it start to fire same event on its parent element is called event bubbling. stopPropagation() is used to prevent the event bubbling.
What are some of the common methods in jQuery
There are various method in jQuery. Some popular are:
1. val()
2. height()
3. width()
4. remove()
5. html()
6. css()
7. addClass
8. attr()
9. find()
10. bind()
1. val()
2. height()
3. width()
4. remove()
5. html()
6. css()
7. addClass
8. attr()
9. find()
10. bind()
Very usefull
ReplyDeleteThe effectiveness of IEEE Project Domains depends very much on the situation in which they are applied. In order to further improve IEEE Final Year Project Domains practices we need to explicitly describe and utilise our knowledge about software domains of software engineering Final Year Project Domains for CSE technologies. This paper suggests a modelling formalism for supporting systematic reuse of software engineering technologies during planning of software projects and improvement programmes in Final Year Projects for CSE.
DeleteSoftware management seeks for decision support to identify technologies like JavaScript that meet best the goals and characteristics of a software project or improvement programme. JavaScript Training in Chennai Accessible experiences and repositories that effectively guide that technology selection are still lacking.
Aim of technology domain analysis is to describe the class of context situations (e.g., kinds of JavaScript software projects) in which a software engineering technology JavaScript Training in Chennai can be applied successfully
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
Sir ,please share more interview questions and answer .....
ReplyDeleteThis comment has been removed by the author.
ReplyDeletevery nice article you shared.
ReplyDeleteif you want to know the technologies updates,visit below site.
dot net and latest technologies Tutorials
Wow, What an Excellent post. I really found this to much informative. It is what I was searching for. I would like to suggest you that please keep sharing such type of info.jquery selector cheat sheet
ReplyDeleteI have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks microsoft edge addons
ReplyDeleteYour blog had very good knowledge and that gives huge instructions and that was really commendable ideas you have good knowledge on this topic please share more information with us. Multiple mini mmi
ReplyDeleteIt’s actually a great and helpful piece of info. I’m happy that you just shared this helpful info with us. Please keep us informed like this. Thanks for sharing! Best best web design company service provider.
ReplyDeleteGreat article by the great author, it is very massive and informative but still preaches the way to sounds like that it has some beautiful thoughts described so I really appreciate this article. Best hire vue js developer service provider.
ReplyDeleteWow! Thank you! I constantly wanted to write on my site something like that. Can I take a portion of your post to my website? Best junior software developer jobs service provider.
ReplyDeleteUltimately, I obtained what I was trying to find. Do not have sufficient words to thank you that you select this certain topic to blog about. Feeling really completely satisfied after reading
ReplyDeleteBest Website Development Company USA
Great article by the great author, it is very massive and informative but still preaches the way to sounds like that it has some beautiful thoughts described so I really appreciate this article. Best cheat sheet service provider.
ReplyDeleteThis is a great blog. I am pretty much impressed with your good work. You put really very helpful information. Keep it up
ReplyDeleteHR consultancy in velachery
HR consultancy in chennai
After a long time, I read a very beautiful and very ismportant article that I enjoyed reading. I have found that this article has many important points, I sincerely thank the admin of this website for sharing it. Best web developer malaysia service provider
ReplyDeleteReally, this is very important information which is shared by you. This info is meaningful and important for everyone to increase our knowledge about it. Always keep sharing this kind of info. Thank you. Read more info about Online job portal website India
ReplyDeleteVery nice blog, with a lot of new information. Thanks for sharing the wonderful blog. Keep going on.
ReplyDeleteUbs accounting
Myob Singapore
Skill future accounting software
Best Accounting software Singapore
frf
ReplyDeleteExcellent post. I really enjoy reading and also appreciate your work.advertising specialty work jobs This concept is a good way to enhance knowledge. Keep sharing this kind of articles, Thank you.
ReplyDeleteYou've written an excellent post, and you've shared it with us. Your article provided me with some unique and useful knowledge Embedded Firmware Engineer Jobs In Bangalore. I appreciate you sharing this text with us.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteYour blog is really good and it helps others. It's a perfect solution for those who search for dps interview questions for class 1 Please share more information like this.
ReplyDeleteThank you for sharing such a useful article. I had a great time. This article was fantastic to read. Continue to publish more articles on
ReplyDeleteCracking The Coding Interview
data structures and algorithms
Your essay is fantastic. Here, you've given very insightful knowledge. agency staffing near me The information you have provided us with is genuinely beneficial and significant. Thank you for providing this information.
ReplyDelete