I want to show and hide the options inside the main based on checkbox checked or not. I have many checkbox but here I am checking address checkbox.
This is my checkbox
<input type="checkbox" id="address">Mark it
here is div I want to hide/show
<div id="options">
//div
</div>
if($('#address').prop('checked')){
$('#options').show()
}else{
$('#options').hide()
}
Above code is not working for me.