ASP .NET でa から aDropDownList
へのドラッグ アンド ドロップ機能を実装したいと考えています。TextBox
DropDownList から 1 つの項目を選択してドラッグし、TextBox
. jQuery プラグインを使用してみましたが、役に立ちませんでした。
以下のマークアップを参照してください。
<script type="text/javascript" src="../Scripts/jquery-1.9.1.js"></script>
<script src="../Scripts/ui/jquery-ui.custom.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
DropDown();
StyleButton();
$('.dragndrop').draggable();
$('#<%=TextBox1.ClientID %>').droppable({
drop: function (ev, ui) {
ui.draggable.appendTo(this);
}
});
});
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" align="left" style="width:200px;">
<asp:DropDownList ID="DropDownList1" runat="server" CssClass="dragndrop">
</asp:DropDownList>
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Height="80px"
Width="250px"></asp:TextBox>
</td>
</tr>
</table>
私が間違っていることを教えてください。