jquery - Toggle Function open by default -
i have function toggle(open , hide div ) clicking : " show / hide filter " text .
here function :
<script type="text/javascript"> $(document).ready(function(){ $(".slidingdiv").hide(); $(".show_hide").show(); $('.show_hide').click(function(){ $(".slidingdiv").slidetoggle(); }); }); </script>
what wanting make div default open click open or hide . default hidden . there solution ?
remove line $(".slidingdiv").hide();
hides sliding div shown default.
Comments
Post a Comment