Last active
February 18, 2018 22:14
-
-
Save seppenen/6a8f3a938fe8b8f6d542893874c94dd3 to your computer and use it in GitHub Desktop.
jquery check box
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
function valid(){ | |
var state =$("input[name='sex']:checked").val(); | |
if(!state) return $("#message").text("Not defined") | |
$('#message').text(state); | |
if (state=="") $('#').show(); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment