I have a div that is made resizable using jQuery UI. How can I dynamically make it not resizable anymore?
I tried calling resizable({ disabled: true })
but the handle still showed.
3 Answers
Use this code: .resizable( "destroy" )
-
or .resizable( "disable" ) but this is like you already tried– simonCommented Jan 12, 2011 at 15:57
Try .resizable("option", "disabled", true);
http://jqueryui.com/demos/resizable/#option-disabled
Your solution is not working because, as per the documentation you need use the setter that I mentioned, if you want to disable it after initialization (you code will only work if its an initialization call)