开发者

Events do not work with the elements which are dropped - UI droppable

开发者 https://www.devze.com 2023-01-05 17:48 出处:网络
I want to display a properties div on click event of another div named abc, which has been dropped using jquery UI droppable. I could show the propertiesdiv by binding an event with the a开发者_Python

I want to display a properties div on click event of another div named abc, which has been dropped using jquery UI droppable. I could show the properties div by binding an event with the a开发者_Python百科bc div, but I want to hide the properties div when the div abc loses its focus.

Thanks in advance


you can indeed bind the click event and then use the focusout() function inside.

like :

(#abc).live('click',function() {

......
(#abc).focusout(function() { .....
});

});

If I missed some subtility please tell me ;)

0

精彩评论

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