html5 - Redraw select menu in JQuery Mobile -


i trying make jquery mobile select menu button larger changing data-mini property true false on fly. able change property, select menu not redraw.

it works button, using .buttonmarkup({mini: false}) (which redraws button instantly), far know there no equivalent select menus.

i have tried .selectmenu("refresh") , .change() - neither redraws select menu button.

here illustration of problem: http://jsfiddle.net/yyxuz/

does have solution?

hey works me -

$('#testselectmenu').parent('div').addclass('ui-fullsize'); 

jsfiddle demo

i noticed won't need $('#testselectmenu').selectmenu('refresh'); approach.

/update

to play safe (it same thing while removing data-mini attribute , ui-mini class) -

$('#testselectmenu').parent('div').attr('data-mini', 'false').removeclass('ui-mini').addclass('ui-fullsize'); 

i think jqm should handle automatically when call .selectmenu('refresh'), i'm not sure why doesn't.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -