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" /> 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 so try "Load" or "Ready" event but no luck, people on Internet say that live() does not support those event. I hope people.. p me. Thank you so much!"> 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"> How to edit dynamically generated elements in jQuery mobile dialog box using jQuery? - Stack Overflow
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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!

share
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.