I'm working on a jQuery mobile project. I use Selectmenu widget which is open a generated dialog when I click on the widget. The dialog has a close button, and I want to edit it from
<a role="button" href="#" class="ui-btn ui-icon-delete">Close</a>
to
<a role="button" href="#" class="ui-btn ui-icon-delete"><i class="fa fa-chevron-circle-left"></i></a>
The problem is I can not do it using jQuery because the dialog HTML is generated dynamically so my script has no effect. I find that people often use live() function to bind events to generated elements but in this case I do not have any event to bind. I also try "Load" or "Ready" event but no luck, people on Internet say that live() does not support those event. I hope people here can help me. Thank you so much!