开发者

jQuery UI - make div not resizable

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜