1.

What Is The Use Of “event.preventdefault” In Jquery?

Answer»

This method is USED to PREVENT the DEFAULT action from happening.

For example:

$("#mycontrolid").CLICK(function(event){

event.preventDefault();

});

This method is used to prevent the default action from happening.

For example:

$("#mycontrolid").click(function(event){

event.preventDefault();

});



Discussion

No Comment Found