124
rated 0 times
[
127]
[
3]
/ answers: 1 / hits: 5896
/ 10 Years ago, wed, december 10, 2014, 12:00:00
I am trying to get all the values present in my dynamic HTML table and POST the values to AJAX.
I have HTML table like this
When i press '+' , I can able to add rows dynamically . When i click save, How to POST array values from this HTML table to AJAX, so that i can meanwhile INSERT those values into MYSQL
I have tried getting the 'text' of each td present in my table
var rows = $(tbody tr,$(#myTable)).map(function() {
return [$(td,this).map(function() {
return this.innerHTML;
}).get()];
}).get();
This is getting me -> <input type=text>
and so on.
More From » php