jQuery Mobile Question: Download Questions PDF
Can you please explain the difference between event.PreventDefault and "return false"?
Answer:
e.preventDefault() will prevent the default event from occurring, e.stopPropagation() will prevent the event from bubbling up and return false will do both.
Download jQuery Mobile Interview Questions And Answers
PDF
Previous Question | Next Question |
What is event.stopPropagation? | Tell me how to check if number is numeric while using jQuery 1.7+? |