所以情况就是这样。每个获得特定值<input>
我有2 <input>
里面<td>
它有无限数量。例如:
<td>
<input type="text" name="cust_name" onchange="check(this)" />
<input type="hidden" name="cust_id" value="10" />
</td>
<td>
<input type="text" name="cust_name" onchange="check(this)" />
<input type="hidden" name="cust_id" value="12" />
</td>
......
this
在check(this)
含有cust_name
值。但是,我怎样才能得到具有相同功能的特定cust_id
值? (check()
)
划定:
function check(part_element){
console.log($(part_element).val());
console.log(getting particular cust_id value); //here is the part
}