과 연결된 ID를이이라는 키워드로 가져 오는 방법은 무엇입니까? 나는 SO 페이지에서 몇 가지를 시도했지만 여기에 내가 질문 열기로 결정했습니다 어디했습니다jQuery의 #id를 가져 오는 중
$('.anySelector').waypoint(function() {
console.log(this); // entire selector's content
var thisContent = this;
console.log($(thisContent).attr('id')); // undefined
});
'을 console.log (jQuery를 (이) .attr ('id'))'충분합니다 –
[요소의 웨이 포인트 get id를 사용하는 jquery] 중복 가능합니다. (http://stackoverflow.com/questions/21232457/jquery-using-waypoint-get-id-of-element) – Oyeme
이것은 경유지와 관련이 없습니다. 그것의 jQuery 질문 – BenRacicot