並べ替え可能なリストがありますが、最初の項目を無効にして、入力フィールドを移動できないようにします。
リストは次のとおりです。
<ul id="sortable" class="connectedSortable">
<input name="name1" class="inputfield" type="text" maxlength="30">
<li>first sort item</li>
<li>second sort item</li>
</ul>
そしてjs:
$("#sortable:not(:first-child)").sortable({
connectWith : ".connectedSortable"
});
:not(:first-child)でこれを解決しようとしましたが、機能していません...誰かがこれを行う方法を知っていますか?
ありがとう!