Sunday, 25 August 2013

Making Fieldset Collapsed on Load

Making Fieldset Collapsed on Load

I need to made all the Fieldset Collapsed when users see my page. So, to
see its content i should click on the Fieldset title. For Example: Here i
have created a jsFiddle which allows to collapse a non collapsed Fieldset,
here is the jQuery:
$(function(){
$('legend').click(function(){
$(this).parent().find('.content').slideToggle("slow");
});
});
But How to make all this Fieldset collapsed? and to see whats inside the
Fieldset people should click on the Fieldset title and then the the
Fieldset will be collapse? Thanks

No comments:

Post a Comment