jQuery Add Collapsible Panel -
jQuery Add Collapsible Panel -
using jquery want dynamically add together new collapsible panels. accordion not enough, need have more 1 section open @ time.
the sample here need apart i'm wanting button click dynamically add together new panel.
using .append() add together in new tag doesn't work. don't mind if solution includes plugins or whatever (i don't want utilize framework such 'kendoui' though)
as indicated in jquery documentation:
an accordion doesn't allow more 1 content panel open @ same time, , takes lot of effort that. if looking widget allows more 1 content panel open, don't utilize this. can written few lines of jquery instead, this:
jquery(document).ready(function(){ $('.accordion .head').click(function() { $(this).next().toggle(); homecoming false; }).next().hide(); }); or animated: jquery(document).ready(function(){ $('.accordion .head').click(function() { $(this).next().toggle('slow'); homecoming false; }).next().hide(); })
;
jquery
Comments
Post a Comment