Reputation: 25
I have one table. In that table I have 10 rows and each row has 3 columns.
Inside every td
we have a textbox
.
How can I retrive all textbox
values from the td
table using jQuery
?
Upvotes: 1
Views: 1416
Reputation: 32159
You can do as follows:
$(document).ready(function(){
$(document).on('click',"#submitButton",function(){
$('#tableId').find('input[type=text]').each(function() {
console.log(this.value)
});
});
});
Upvotes: 1