Tell me how do you hide an image on a button click using jQuery?
Submitted by: MuhammadThis jQuery interview question is based on event handling. jQuery provides good support for handling events like button click. You can use following code to hide an image, found using Id or class. What you need to know is the hide() method and how to setup an even handler for button, to handle clicks, you can use following jQuery code to do that :
$('#ButtonToClick').click(function(){
$('#ImageToHide').hide();
});
I like this jQuery question, because it's like a practical task and also code is not difficult to write.
Submitted by: Muhammad
$('#ButtonToClick').click(function(){
$('#ImageToHide').hide();
});
I like this jQuery question, because it's like a practical task and also code is not difficult to write.
Submitted by: Muhammad
Read Online Web Development Ninjas Job Interview Questions And Answers
Top Web Development Ninjas Questions
☺ | Tell me how do you hide an image on a button click using jQuery? |
☺ | Do you know what elements have disappeared? |
☺ | Tell me how do you add and remove CSS classes to an element using jQuery? |
☺ | Suppose our hyperlink or image is not displaying correctly, what is wrong with it? |
☺ | Tell us how do you optimize a website’s assets? |
Top Web Developer Categories
☺ | Bootstrap Interview Questions. |
☺ | Front End Web Developer Interview Questions. |
☺ | Typography Interview Questions. |
☺ | Laravel PHP Developer Interview Questions. |
☺ | Junior Developer PHP Interview Questions. |