Return to Snippet

Revision: 30546
at August 17, 2010 04:04 by kopeo


Initial Code
<script type="text/javascript">
	$('#id').change(function () {
	    if ($(this).attr("checked")) 
		{
	       $('#id').attr("value", 'ja')
	       return;
	    }
	    $('#id').attr("value", 'nein')
	});
</script>

Initial URL

                                

Initial Description

                                

Initial Title
Checkbox toogle value

Initial Tags
form, javascript, jquery

Initial Language
JavaScript