td要素の値を2次元配列に格納する。
function tableToMatrix() {
var data = [];
$('tr').each(function(i) {
data[i] = [];
$('td', $(this)).each(function(j) {
data[i][j] = $(this).text();
});
});
return data;
}
No comments yet.
改行と段落タグは自動で挿入されます。
メールアドレスは表示されません。