开发者

jquery droppable is not work properly

jquery

$(ui.helper).remove();
$(ui.draggable).draggable().addClass('listmenu');

css

.listmenu ul {
margin: 0 0 5px 0;
padding: 0 0 2px 0;
list-style-type: none;
width:185px;}

in my case <ul>&l开发者_JS百科t;li> is generate dynamically.when i want to redrop my element its not recognize css class.Any idea about this.redrop element has css(position:relative) so its go far away from droppable area.plz help.


If I get you right (I am not a 100%) sure you are looking for something like this: http://api.jquery.com/live/ as I guess the problem is that you apply the call the draggable-method before you create your <li>s (you are saying that you create them dynamically).

Other possibility would be to call the draggable() right after you created the <li>s.

Of any help?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜