Get current value in a set of CSS classes using Jquery
- by Thang Nguyen
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.