<script type="text/javascript">
$(function(){
$('.mycheck').change(function () {
if ($(this).attr("checked"))
{
$('.mychkdiv').fadeIn(100);
return;
}
$('.mychkdiv').fadeOut();
});
});
</script>
<style>
.mychkdiv { width:400px; padding:20px; background-color:yellow; display:none;}
</style>
</head>
<body>
hello this is checkbox <input type="checkbox" class="mycheck" name="chk"/>
<div class="mychkdiv" style="display:none">sfdadasds</div>
$(function(){
$('.mycheck').change(function () {
if ($(this).attr("checked"))
{
$('.mychkdiv').fadeIn(100);
return;
}
$('.mychkdiv').fadeOut();
});
});
</script>
<style>
.mychkdiv { width:400px; padding:20px; background-color:yellow; display:none;}
</style>
</head>
<body>
hello this is checkbox <input type="checkbox" class="mycheck" name="chk"/>
<div class="mychkdiv" style="display:none">sfdadasds</div>
No comments:
Post a Comment