I have a web page which I have prevented the default action on all submit buttons, however I would like to re-enable default submit action on a button how can I do this?
我目前正在使用以下方法阻止默认操作:
$("form").bind("submit", function(e){
e.preventDefault();
});
我已经使用以下方法成功地实现了这一点:
$(document).ready(function(){
$("form:not('#press')").bind("submit", function(e){
e.preventDefault();
});
But can I do this dynamically when the button is clicked?