- <form id="myform" action="someUrl.php" method="get">
- 2 <input name="username" />
- 3 <!-- some more form fields -->
- 4 <input id="submit" type="submit" />
- 5 </form>
- $('#myform').submit(function(){
- 2 $('input[type=submit]', this).attr('disabled', 'disabled');
- 3 });
稀释对象事务动作
- $('#qqqo').unbind('click');