读书人

jquery交付时禁止按钮和超链接

发布时间: 2012-10-08 19:54:56 作者: rapoo

jquery提交时,禁止按钮和超链接

?

?

?

?

?

?

?

jquery提交时,禁止按钮和超链接

?

?

?

?

function disableAll() {$(":button").each(function() {$(this).attr("disabled", true);});$("a").each(function() {$(this).replaceWith("<a style='cursor:hand'>"+$(this).html()+"</a>");});}

?

?

?

?

?

?

?

?

?

?

?

?

读书人网 >Web前端

热点推荐