InterviewSolution
| 1. |
Tell Me How Do You Hide An Image On A Button Click Using Jquery? |
|
Answer» This 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(); }); This 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(); }); |
|