< td id="1"> < /td>
JQuery:
$(".clsTeacherUserName").change(function () { var id = $(this).parent().attr("id"); //id = 1 });
Refrence: http://stackoverflow.com/questions/545978/finding-the-id-of-a-parent-div-using-jquery
JQUERY-parent: http://api.jquery.com/parent/
沒有留言:
張貼留言