2016-06-18 4 views

답변

2
$(".save-fan-page").on("click",function() { 
    $(this).closest("tr").find("select[name='brand_dropdown'] option:selected").data("brand-id"); 
} 

공지 사항 selectoption:selected 에 대한 속성 선택 사이의 공간 나는 그 문제가 무엇인지 생각합니다. 귀하의 경우에는 이 누락되었습니다.입니다.

1

$(this).closest("tr").find("select[name='brand_dropdown'] option:selected").data("brand-id"); 

줄 시도 space

select[name='brand_dropdown'] 사이 option:selected
관련 문제