Showing posts with label jquery. Show all posts
Showing posts with label jquery. Show all posts

Tuesday, November 6, 2012

jQueryPad

no time to check whether it is good..........

http://www.paulstovell.com/jquerypad

What is preventDefault() in jquery?

preventDefault() 方法阻止元素發生默認的行為(例如,當點擊提交按鈕時阻止對錶單的提交)。


$("a").click(function(event){
  event.preventDefault();
});