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-handler mousedown. might want try event.preventdefault() inside mousedown handler or alternatively wrap button span or div , make div or span handler, think none of them work.

for more here


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -