Erlaunis Erlaunis - 2 years ago 62
jQuery Question

Get value of a specific input using ".find()"

I want to get the value of an input. In my application, I want to update an entry in my database for each row. So, when I click on the button, I want the values of the corresponding row.

var id_sol = $(this).find('.nom_sol').value;

I made a jsfiddle for you to see what I'm trying to do. I'm trying to get the value of a row.

Can someone tell me how I should do please ?

Answer Source

use this

        var age = $(this).parent().parent().children('td').find('.age').val();
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download