Name |
Number |
language |
checkbox |
selectbox |
John |
1212 |
C# |
x |
this is a select box |
hi
so i have the above table. when the checkbox is clicked it must disable the selectbox and output the column values for name,number,language
i am able to get the name only this is my output:Object {Name: "John", Number: "", check:"1"}
this my code
var Name = {};
var number = {};
var check = {};
check = $(this).parents('tr').find("input[name=checkbox]").val();
Name = $(this).parents('tr').attr('id');
Number =($(this).parents('tr').next('td').text());
var result = {
Name: Name,
Number:Number,
check: check,
};
console.log(result);
how do i get number and language