To cancel a default action and prevent it from bubbling up, return false: : bind « jQuery « JavaScript DHTML






To cancel a default action and prevent it from bubbling up, return false:

 


$("form").bind("submit", function() { return false; })

   
  








Related examples in the same category

1.Bind click event to header
2.Bind more than one event actions
3.bind(type, data, fn)
4.bind "dblclick"
5.bind "mouseenter mouseleave"