How can I use JQuery's Drag and Drop on a TextBox?

后端 未结 1 1463
小蘑菇
小蘑菇 2021-01-28 23:18

I am using JQuery and want to move a textbox.As in drag it using the draggable function and also make it droppable() so as to drop few properties onto it. I am not able to make

相关标签:
1条回答
  • 2021-01-29 00:00

    Input elements are note draggable by default, because it will not know if you want to drag the textbox or just put the focus on it.

    It is the default cancel option for input elements, but you can override it

    $("#yourTextBox").draggable({ cancel: null }); 
    
    0 讨论(0)
提交回复
热议问题