/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript"> $('#id').change(function () { if ($(this).attr("checked")) { $('#id').attr("value", 'ja') return; } $('#id').attr("value", 'nein') }); </script>