Saturday, 15 June 2013

javascript - Accessing single value from Google sheet in html table -



javascript - Accessing single value from Google sheet in html table -

i'm trying force info html table (tds have ids) using tabletop.js. can pull entire array in 1 of tds, how pull in 1 value array tabletop.js builds?

$.each( tabletop.sheets("schools").all(), function(i, name) { var 1 = $('<p> '+ name.one + '</p>'); one.appendto("td[id$=roundone]"); })

this puts every value in column 'one' spreadsheet in 1 td cell roundone id. want first value in first roundone td, sec value in sec roundone td etc.

wrap td selector in jquery, , select ith element. when select "td[id$=roundone]", selects of td's id.

here's working example. http://jsfiddle.net/tshqu/

javascript jquery

No comments:

Post a Comment