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

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

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -