0
jquery를 사용하여 엘레멘트를 끌어서 놓고 다른 모든 것들을 3x3 테이블에 맞게 정렬하려면 어떻게해야합니까? 제발 도와주세요. 나는 정말로 혼란 스럽다.jquery를 사용하여 테이블을 드래그 앤 드롭
이것은 내가 지금까지 시도한 것입니다 :
$(document).ready(function(){
$(".smsSecond").draggable({containment: ".maincol"});//, revert: true
$(".smsSecond").click(function(){
$(this).hide(500);
});
$(document).bind("contextmenu", function(e) {
$('.smsSecond').show(500);
return false;
});
});
당신이 지금까지 시도한 것을 보여주세요 ... – Myth
위의 코드는 지금까지 제가 시도한 것입니다. 요소를 한 곳에서 다른 곳으로 드래그하는 것만으로도 내가 질문에서 말한 것에 대해 혼란 스럽습니다. –
@Myth 나는이 대답이 유일한 문제 수 있다고 생각 ... [JQuery와 UI 정렬] [1] [1] : http://stackoverflow.com/questions/6875471/jquery-ui- sortable-connectwith-difficulties-connected-item-is-empty – Myth