jQueryUI로 정렬 가능한 컴포넌트를 생성했습니다.이 엘리먼트가 appendTo jQuery 함수로 생성 된 경우를 포함하여 잘 작동합니다.엘리먼트 si가 appendTo와 함께이 엘리먼트를 생성 할 때 정렬 이벤트가 발생했습니다
$template.appendTo("#lista_criterios");
$("#lista_criterios").sortable({
handle: ".criterio-header",
placeholder: "alert alert-info",
axis: 'y',
update: showMessage('alert-success', 'Ordenacion de criterios completada.')
});
정렬이 완료되면 이벤트가 필요하고 다른 요소는 작동하지 않는 경우가 있습니다.
제발 도와주세요.
참고 : 예제 코드는 원본과 동일하지 않습니다.
내가 $하려고 ("#lista_criterios")를 .sortable ("새롭게 하다"). 그러나 wotk. . . – Blacknet
'showMessage()'는 무엇을하나요? 그것은 함수를 반환합니까? – blgt
showMessage == alert(); 고마워요 :) – Blacknet