Get current value in a set of CSS classes using Jquery

Posted by Thang Nguyen on Stack Overflow See other posts from Stack Overflow or by Thang Nguyen
Published on 2010-05-29T16:46:45Z Indexed on 2010/05/29 16:52 UTC
Read the original article Hit count: 298

Filed under:
|

Dear all I have some class like this

<div class = "student">
<div class = "name">Adam </div>
<input class = "paperTaken">
</div>

<div class = "student">
<div class = "name">Smith</div>
<input class = "paperTaken">
</div>

When I put the cusor on an input field (say, "paperTaken" in the first "student" class), I can get the corresponding value in class "name" (eg: Adam).

Could you help me? Thank you in advance.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about css