What is event.PreventDefault?

Answer Posted / chaitanya

The event.preventDefault() method stops the default action of an element from happening. For example, Prevents a link from following the URL.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we apply css in last child of parent using jquery library?

567


What are the difference between alert() and confirm()?

520


What are the types of selectors that are used in jquery? Give examples.

557


What is the difference between find and children methods?

557


What is the use of val() method in jquery?

596






What is called chaining?

556


Explain chaining in jquery? : jquery mobile

562


Is window.onload is different from document.ready()?

469


What is difference between $(this) and ‘this’ in jquery?

508


List the advantages of jquery?

507


What is jquery connect and how to use it?

617


Explain the difference between event.preventdefault and "return false"? : jquery mobile

544


What are the difference between empty(), remove() and detach() functions in jquery?

523


What is queue() in jquery? Use of queue() in jquery?

506


How to fetch the values of selected checkbox array using jquery?

578