draggable button using jQuery UI

Randomblue picture Randomblue · Jul 29, 2011 · Viewed 18.5k times · Source

I can easily make a <div> element draggable, but not a <button> element. How can I make the <button> draggable, too?

View at JSFiddle

Answer

ravi picture ravi · Feb 2, 2012

Its not a bug , use this, $('input[type=button]').draggable({cancel:false}); You need to cancel the default click event of the button.