I have a div that is made resizable using jQuery UI. How can I dynamically make开发者_Go百科 it not resizable anymore?
I tried calling resizable({ disabled: true })
but the handle still showed.
Use this code: .resizable( "destroy" )
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)
Oops... I was disabling "resizable" before I enabled it...
精彩评论