jquery - keep accordion collapsed after dropping its header -
I am using the jquery accordion UI with the sortable feature, now I am facing that problem When I drag the header of the header and place it at the specified place, if the header collapses, then it spreads and it collapses if it has already expanded.
So I want to keep the headers off whenever the user drags it away and leave it.
My configuration is a compliance to the property parity
I have set a transcepicious truth because I want a feature that if a user clicks, the header header spreads and click again. Becomes short.
I resolved myself by adding the following part of the code
Var stop = false;
$ ("# accordion h3"). Click (function (event) {if (stop) {event.stopImmediatePropagation (); event.preventDefault (); stop = false;}});
Comments
Post a Comment