How do I query sql using javascript (jquery), limiting to one random result and then distribute the results into specific html tags?
Here’s mytag:
<div id= "title"> <div id="option_a"></div> <div id="option_b"></div> <div id="option_c"></div> </div>
My sql has the same fields as the ids above.
Please help.
many thanks.
Take a look at the database tutorial at the phonegap website. If you don’t know how to insert DOM nodes into HTML read the manipulation section in the jQuery documentation.