Return to Snippet

Revision: 32910
at October 4, 2010 23:40 by supreme


Updated Code
<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>

Revision: 32909
at October 4, 2010 23:39 by supreme


Initial Code
<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>

Initial URL

                                

Initial Description

                                

Initial Title
Checkbox enable/disable submit

Initial Tags

                                

Initial Language
jQuery