0

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 3

5

Use this code: .resizable( "destroy" )

1
  • or .resizable( "disable" ) but this is like you already tried
    – simon
    Commented Jan 12, 2011 at 15:57
3

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)

0
0

Oops... I was disabling "resizable" before I enabled it...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.