/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script language="javascript" type="text/javascript"> $(document).ready(function () { var Checkbox = $("#deleteDomain input[name='confirm']"); var submit = $("#deleteDomain :submit"); Checkbox.bind('keyup click', function () { $(this).is(':checked') ? submit.removeAttr('disabled') : submit.attr('disabled', 'disabled'); }); }); </script>