Skip to content

Instantly share code, notes, and snippets.

@jimoconnell
Created October 24, 2013 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimoconnell/7137398 to your computer and use it in GitHub Desktop.
Save jimoconnell/7137398 to your computer and use it in GitHub Desktop.
This is a way to freeze the jQuery Accordion, but not have it all greyed-out. For our purposes, it should allow the embedding of modal forms in the accordion panels, but keep the user from hiding or destroying an unsaved form. Try it on the console of this page: http://jqueryui.com/resources/demos/accordion/default.html JSFiddle at: http://jsfid…
$("#accordion").accordion( "disable" );
$("#accordion").removeClass("ui-state-disabled");
$("#accordion").find("*").removeClass("ui-state-disabled");
$("#accordion").accordion( "enable" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment