how to replace the HTML5 content in a modeless dialog box?

how to replace the HTML5 content in a modeless dialog box?

I want to have have ui dialog box has a div with an id = "w01html" which contains a list of <href>s.

I want to repeatedly alter the <href> lists by replacing them with HTML5 from an AJAX call which returns the data in JSON . HTML5.


Would "$("#w01html").html(JSON.HTML5)" load the HTML5 into the dialog? 
and would the dialog box display the list?

I do not want to keep closing and opening a dialog box so If anyone could help I would appreciate it. As you can tell I am inexperianced with jquery ui.