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人要求关闭这个主题,最新的错误? –