Skip to content

Instantly share code, notes, and snippets.

@seppenen
Last active February 18, 2018 22:14
Show Gist options
  • Save seppenen/6a8f3a938fe8b8f6d542893874c94dd3 to your computer and use it in GitHub Desktop.
Save seppenen/6a8f3a938fe8b8f6d542893874c94dd3 to your computer and use it in GitHub Desktop.
jquery check box
<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