when click on aspbuttone slide div class right to left Jquery
When I am clicking on asp button div slide from right to left but when I
click on a button which is inside the div then jquery stops working
Following is my code
<script type="text/javascript">
$(function () {
var myDivWidth = $(".boxno1").width();
$('[id$=reqbtn]').click(function (e) {
if ($("div.boxno1").width() == 0) {
$("div.boxno1").animate({ width: myDivWidth },
'slow');
$("div.boxno1").toggle("slow");
//$("td#panel").show();
return false;
} else {
$("div.boxno1").animate({ width: 0 }, 'slow');
$("div.boxno1").toggle("slow");
//$("td#panel").hide();
return false;
}
});
</script>
No comments:
Post a Comment