2015年2月13日 星期五

html select tag 在 cordova build bug

1.selectsize無效
若要select 顯示多筆,在web上可透過size設定要顯示的數量
<select size='5'>
但在build apk後,會造成select無法看到option選項
clcik select後才看得到選項
拿掉size後 select會顯示單筆option

2.option selected無效
在web上可以透過設定option的selected達到選取效果
#$(_option).attr 'selected','selected'<br />
但這在cordova上無效須改成在
select上設定value才會讓web與cordova都可常使用
$('._select').val $(_option).val()

沒有留言: