InterviewSolution
| 1. |
What Is The Use Of Event.preventdefault Function In Jquery? |
|
Answer» event.preventDefault FUNCTION in JQUERY is used to prevent the DEFAULT behaviour of the event in QUESTION. For eaxmple if you want to prevent the default behaviour of click event then use the following code $("div").click(function(event){ event.preventDefault(); Now if you will click on the div it will disappear slowly. event.preventDefault function in Jquery is used to prevent the default behaviour of the event in question. For eaxmple if you want to prevent the default behaviour of click event then use the following code $("div").click(function(event){ event.preventDefault(); Now if you will click on the div it will disappear slowly. |
|