리자

jQuery closest().find()

· 2011-11-18 (금) 14:27:04 · 6072 · 2
<table>
<tr>
    <td><input type=text name='aaa[]'></td>
    <td><input type='text name='bbb[]'></td>
</tr>
<tr>
    <td><input type=text name='aaa[]'></td>
    <td><input type='text name='bbb[]'></td>
</tr>
</table>
 
bbb 에 포커스가 있을때 aaa 를 얻으려면
 
$(this).closest("tr").find("[name='aaa\[\]']")
 
|

댓글 2개

2011-11-19 (토) 00:29:09
tree traversing
추천~
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
Mobile 11-12-19 조회 4,555
jQuery 11-12-17 조회 3,302
MySQL 11-12-17 조회 3,584
MySQL 11-12-17 조회 2,929
node.js 11-12-16 조회 2,530
node.js 11-12-15 조회 2,848
node.js
[node.js]
11-12-15 조회 2,981
node.js 11-12-15 조회 5,718
JavaScript 11-12-15 조회 3,099
Linux 11-12-14 조회 1,944
PHP 11-12-14 조회 4,201
jQuery 11-12-12 조회 2,694
Linux 11-12-12 조회 2,777
node.js 11-12-09 조회 3,086
Mobile 11-12-09 조회 3,568
Mobile 11-12-09 조회 2,921
Mobile 11-12-09 조회 3,359
Mobile 11-12-09 조회 4,477
node.js 11-12-09 조회 2,352
기타 11-12-09 조회 3,100
Flash 11-12-08 조회 2,722
PHP 11-12-08 조회 2,797
jQuery 11-12-08 조회 1.2만
PHP 11-12-08 조회 4,448
jQuery 11-12-08 조회 3,031
JavaScript 11-12-08 조회 3,045
node.js 11-12-07 조회 2,449
jQuery 11-12-07 조회 3,363
Flash 11-12-07 조회 3,814
node.js 11-12-07 조회 3,452