1
我需要爲容器元素啓用排序,但不能排序所有子元素。我試圖用items
選項,但它的時候我在子元素點擊不能排除可排序的元素
$('.faqs-container').sortable({items: '.faq-container'});
HTML
<div class="faqs-container ui-sortable"><div class="faq-container sortable" style="position: relative; z-index: 888888; left: 0px; top: 0px;">
<span class="ui-icon ui-icon-arrowthick-2-n-s"></span>
<a class="js-remove-faq-row remove-faq-row" href="#">Remove [x]</a>
<lable>FAQ Title</lable><input type="text" value="lkjlkjklj" name="field_id_19[Uovprcx5cmLZIkyf][data][faqtitle][]"><lable>FAQ Body</lable>
<div class="editor">
<div class="redactor_box"><div contenteditable="true" class="redactor_redactor_editor redactor_editor" dir="ltr" style="min-height: 200px;"><p>lkjlkjlkjklj</p></div><textarea data-config_key="d82b1dbcc543a2dfd246eecbea54bb88" class="redactor_editor" name="field_id_19[Uovprcx5cmLZIkyf][data][faqbody][0]" dir="ltr" style="display: none;"><p>lkjlkjlkjklj</p></textarea></div>
</div>
</div>
</div>
請包括您的標記。 –
@PeterRasmussen已添加評論。你也可以在小提琴上檢查 –
我不明白爲什麼2人要求關閉這個主題,最新的錯誤? –