开发者

jQuery UI - make div not resizable

开发者 https://www.devze.com 2023-02-03 16:45 出处:网络
I have a div that is made resizable using jQuery UI. How can I dynamically make开发者_Go百科 it not resizable anymore?

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...

0

精彩评论

暂无评论...
验证码 换一张
取 消