Posted By

supreme on 10/04/10


Tagged


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

zreedeecom
luman
bobbym245
Plotarius
Kurt
dubogii


Checkbox enable/disable submit


 / Published in: jQuery
 

  1. <script language="javascript" type="text/javascript">
  2. $(document).ready(function ()
  3. {
  4. var Checkbox = $("#deleteDomain input[name='confirm']");
  5. var submit = $("#deleteDomain :submit");
  6.  
  7. Checkbox.bind('keyup click', function ()
  8. {
  9. $(this).is(':checked') ? submit.removeAttr('disabled') : submit.attr('disabled', 'disabled');
  10. });
  11. });
  12. </script>

Report this snippet  

You need to login to post a comment.