자신의 객체 태그를 검색, 내 현재 코드는 다음과 같습니다내가 리튬 태그 목록을 정렬 jQuery를 사용하고
var arr = [];
$("ul li").each(function() {
arr.push($(this));
});
arr.sort(cmpFunction);
$("ul").find("li").remove();
$.each(arr, function(index, item){
console.log(item.html());
});
내가 비록 CONSOLE.LOG로 찾는거야 무엇 - 내가 포함 된 외부를 잃는하고있다 리 태그뿐만 아니라
나는 간단한 예제를 제공 한 나에게 객체 리튬 태그를 줄 것이다) (.html 파일 또 다른 옵션이 있습니까
(HTML5의 데이터를 내가 계속하려는 속성) 내가 여기에 필요합니다 : http://jsbin.com/esalas/5
이 질문의 중복이 아닙니다 : http://stackoverflow.com/questions/2419749/get-selected-elements-outer-html? –