Reputation: 26
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
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