TliliDroid
TliliDroid

Reputation: 26

Data for <select> dynamic .html jquery mobile

I want to add dynamic data to an option menu .
i have used .html(object).
object has the format
'<option>ww</option>....<option>xx</option>'

Upvotes: 0

Views: 384

Answers (1)

Mark Henderson
Mark Henderson

Reputation: 2696

Try

$('#description').html(cc).trigger('create')

or

$('#description').html(cc).trigger('refresh')

depending on whether or not the element is brand new or not.

See Enhancing new markup in http://jquerymobile.com/test/docs/pages/page-scripting.html

Upvotes: 1

Related Questions