Created
May 15, 2015 15:58
-
-
Save bangiqi/dc53424900f0be43a763 to your computer and use it in GitHub Desktop.
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> | |
$(document).ready(function(){ | |
// checkbox_check with getElementsByClassName() | |
if ($('input.checkbox_check').is(':checked')) { | |
$("#show").click(function(){ | |
$("p").show(); | |
}); | |
}else{ | |
$("#hide").click(function(){ | |
$("p").hide(); | |
}); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment