开发者

How to push PhoneGap into html tags?

开发者 https://www.devze.com 2023-04-11 09:51 出处:网络
How do I query sql using javascript (jquery), limiting to one random result and then distribute the results into specific html tags?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消