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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -