is up to you how you would like to make your json format, but you can easily
loop between your table's row, and td then add the format you like.
something like:
var $table = $('#tableid');
$('tr', $table).each(function(i, item){
   // here you can add whatever you like for each TR, then you can browse td 
for each tr
    $('td',$(this)).each(function(i,item){
        // now you have all td as well
    });
});

nvictor wrote:
> 
> 
> hi, i'm new to jquery and i was wondering how i can use it to convert
> an html table into a json format. i found a lot of help for doing the
> reverse (json to html table) but couldn't get much help with this one.
> 
> 
> thanks a lot in advance.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/converting-an-html-table-to-json-tp24605327s27240p24609180.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to