`

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

阅读更多

 

 

 

 

 

 

 

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

 

 

 

 


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

 

 

 

 

 

 

 

 

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics