$(document).ready(function(){
$.mobile.ajaxEnabled = false;
$(".ui-select").each(function () {
$(this).css({ 'width': $(this).parent().width() + 'px' });
});
$(".ui-select").css("display", "");
$(".ui-select").show();
});
$(window).resize(function () {
$(".ui-select").hide();
$(".ui-select").each(function () {
$(this).css({ 'width': $(this).parent().width() + 'px' });
});
$(".ui-select").css("display", "");
$(".ui-select").show();
});
///
2013/11/01 update
maybe we can use below function to change width, it's easier to use
$('#select_menu_id').selectmenu('refresh');
沒有留言:
張貼留言