¡@

Home 

2014/10/16 ¤W¤È 12:04:48

jquery Programming Glossary: li_str

Inserting elements into the DOM in a jQuery Mobile based page

http://stackoverflow.com/questions/4952417/inserting-elements-into-the-dom-in-a-jquery-mobile-based-page

an li tag around my DB results and then call .list .append li_str where .list is the class of my ul tag. The page renders as if.. var num_entries 5 for var i 0 i num_entries i var li_str li id i a href # Entry number i 1 a li_str img src icon.png.. i var li_str li id i a href # Entry number i 1 a li_str img src icon.png li_str li .mainlist .append li_str script..

Inserting elements into the DOM in a jQuery Mobile based page

http://stackoverflow.com/questions/4952417/inserting-elements-into-the-dom-in-a-jquery-mobile-based-page

I execute the DB lookup and for each results I create an li tag around my DB results and then call .list .append li_str where .list is the class of my ul tag. The page renders as if jQuery Mobile isn't present I see the correct data in each.. 1.0a2.min.js script script function build_dynamic_content var num_entries 5 for var i 0 i num_entries i var li_str li id i a href # Entry number i 1 a li_str img src icon.png li_str li .mainlist .append li_str script head body div.. build_dynamic_content var num_entries 5 for var i 0 i num_entries i var li_str li id i a href # Entry number i 1 a li_str img src icon.png li_str li .mainlist .append li_str script head body div data role page id list data fullscreen false..