javascript - Want to drag a div through jquery -
i trying use jquery ui draggable option handle, not working, tried :
$("div").draggable( { handle : $("#buttonid") }) can anyody tell me problem?
edit
the handle not working handle, means want drag handle drag div, not working ?
$("div").draggable( { handle : "#buttonid" // need not wrap $() }); according edit
i haven't tested this. button's default
event-handlermousedown. might want tryevent.preventdefault()insidemousedownhandler or alternatively wrap buttonspanordiv, makedivorspanhandler, think none of them work.
for more here
Comments
Post a Comment