javascript - jQuery Mobile Style is not applied -


i have below markup, injected dynamically. fieldcontain not styled.

var markup = ''; markup += ('<div data-role="fieldcontain"><textarea cols="40" rows="4" name="" id="comment"></textarea></div><a data-role="button" href="#" id="updatecomment" data-theme="b">post comment</a>');     $('#fbcommentblock').empty().append(markup); 

dynamically added content must manually enhanced. every jquery mobile widget has unique function, example listview has method called:

$('#listviewid').listview('refresh'); 

but because cant see appending use :

$('#contentid').trigger('create'); 

to style dynamically added content added data-role="content" div tag.

if want find more theme read blog article here. there find theme described in detail lot of working examples.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -