How To Create jquery code for creating Ul dynamically
<p>I want jquery code to create following Ul in div tag dynamically name and time are different.</p>

<p>I have the name and date from database in json format and I want to create menu from the data using Jquery.</p>

<pre><code>    &lt;div data-role="content"&gt;
                &lt;ul data-role="listview" data-divider-theme="b" data-inset="false"&gt;
                    &lt;li data-role="list-divider" role="heading"&gt;&lt;/li&gt;
                    &lt;li data-theme="c"&gt;&lt;a data-transition="slide" onclick="javascript:navigation_message_details()"&gt;
                        Verinoff,James &lt;span class="patient-list_txt2-red"&gt;04/13/2011 12:12&lt;/span&gt;&lt;/a&gt;
                    &lt;/li&gt;
                    &lt;li data-theme="c"&gt;&lt;a data-transition="slide" onclick="javascript:navigation_message_details()"&gt;
                        Parker,Tollin &lt;span class="patient-list_txt2-yellow"&gt;04/13/2011 12:10&lt;/span&gt; &lt;/a&gt;
                    &lt;/li&gt;
                    &lt;li data-theme="c"&gt;&lt;a data-transition="slide" onclick="javascript:navigation_message_details()"&gt;
                        Michael,John &lt;span class="patient-list_txt2-green"&gt;04/13/2011 12:04&lt;/span&gt;&lt;/a&gt;
                    &lt;/li&gt;
                    &lt;li data-theme="c"&gt;&lt;a data-transition="slide" onclick="javascript:navigation_message_details()"&gt;
                        Jonah &lt;span class="patient-list_txt2-yellow"&gt;04/13/2011 12:03&lt;/span&gt;&lt;/a&gt; &lt;/li&gt;
                    &lt;li data-theme="c"&gt;&lt;a data-transition="slide" onclick="javascript:navigation_message_details()"&gt;
                        Jaffee,Dillon &lt;span class="patient-list_txt2-red"&gt;04/13/2011 12:02&lt;/span&gt;&lt;/a&gt;
                    &lt;/li&gt;
                    &lt;li data-theme="c"&gt;&lt;a data-transition="slide" onclick="javascript:navigation_message_details()"&gt;
                        Denny Stephen &lt;span class="patient-list_txt2-blue"&gt;04/13/2011 12:01&lt;/span&gt;&lt;/a&gt;
                    &lt;/li&gt;
                &lt;/ul&gt;
            &lt;/div&gt;
</code></pre>
