$("tr[seq] a[href]").click(function() {
             
             alert( $(this).attr("name") );

 

    "<tr height='30' seq='{0}' commentCnt='{4}' depth='{4}'  >" +
  "  <a href='#' name='{0}'>" +
  "  <td width='50'  align='center'> {1} &nbsp;</td>" +


===>위의 html에서 tr[seq] a[href] 의 조건이 선택하는 부분은 tr[seq] 부분이 아니라 a[href] 부분이라서
<a href='#' name='{0}'> 의 값을 가져온다.


===>alert( $(this).attr("name") ); 했을때 undefined 란 것이 나오면
 1. attr 속성에 name이 없는 경우
 2. name 있어도 xml에서 값이 정의 안된경우


==================================================

alert( $("tr[seq] a[seq]").eq(5).attr("width") );    의미는 tr부분에 seq속성이 있어야한다.

Posted by useways
,