It's doubtful many people are familiar with that particular API, but we can help you debug it with the usual Javascript debugging techniques. But we need to establish a solid base upon which to being.
Post the code you are trying, without any unnecessary PHP (which just confused the issue), and the exact problems you are having with it. At what point is it not doing what you expect?
Please find below the Code that I'm using. The body part where the Selector is written works. I can see the selector with Texas on it.
The query works but the part where the info form the query (which is the State of Alabama) should be added to the Selector, that's what is not working.
I'm trying to debug through Google Chrome (F12) but not very sure how to run it and see the values. I'm seeing that there is and error in 21 see image attached.
I'm not using jQuery becuase I don't know how to do this in JQuery and also I want to integrate this in Google Site and I don't think I can use jQuery in Google Sites.
I tried in a different way to see if it worked. Now I'm able to debug the code and see the info stored in Data. However, I don't understand it and don't know how to use it.
Now I can see in the final result (also attached) that something tried to be added [object Object] but not the value that I tried to add (Value read from the Google Spreadsheet, which is ""Alabama)
Thank you very much again
New Code below as well as Image with the Debug and result of storage of Data attached.
I think I found out a way to use jQuery in Google Sites, so if you could help me out on how to do what I'm trying to do in JQuery that would work as well.
That looks typical of a google internal structure. What does the documentation for the getTableData method have to say about what it returns? I suspect it's not a construct that you are supposed to use directly.
And you never answered my question about jQuery. Life is too short to do DOM manipulation by hand!