hyperlink - jQuery Collapsible Plugin: Jump to anchor and expand -


How to jump on a section anchor (eg # 3) and the section be expanded together, If it has not already been extended?

Edit: Plus, all other sections should be closed.

With your API you can open "openable" by this

 < Code> $ ('# collapsible_id'). Open ('open');   

So if you can identify the link or button that can be caused by some "openable" open (you can do this by adding some squares to indicate it) , You can add your click handler which will open the correct "Opening"

  $ ('. Open_collapsible'). Click (function () {var id_of_collapsible_to_open = $ (this) .attr ('some_custom_attribute_hold_id_of_collapsible_to_open'); $ ('#' + Id_of_collapsible_to_open). Colescable ('Open');});    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -