I've got a table in an html document im writing, and i have two separate cells which need to pull parallel information. For example, a book title and a summary. The book title and book summary need to be from the same book...
Ok, so i have one array with 20 lines. The first ten lines are the "titles" and the last ten are the "summaries". Ok, then i have this
var i = Math.floor(10*Math.random()) var j = i+10
Now, using this same external array, in my html file i need one cell to display variable i and another cell to display variable j. I need to somehow use this command,
in one cell and then
using this code,
and containing both "document.write" things in the .js file it works perfectly, but i need the information in the different cells.
Hope this is clear :D