We cannot reproduce your problem. Which Android version do you use?
We cannot reproduce your problem. Which Android version do you use?
galaxy ace (GTS5830)
I see. It's a bug. We will fix it. I will update.
It's an Android feature. To get over it use this JS code to add elements instead of existing code:
codefunction setSelectMenuOptions(select, options) {
select.children().each(function() {$(this).remove()});
for(i=0; i<options.length; i++) {
var value = options;
var newOption = $('<option value="'+value+'">'+value+'</option>');
select.append(newOption);
}
select.refresh();
}
function save(item, varName) {
var arr = localStorage.getItem(varName);
if(arr == null) {
arr = new Array();
}
else {
arr = JSON.parse(arr);
}
arr.push(item);
localStorage.setItem(varName, JSON.stringify(arr))
}
function myload(varName) {
var arr = localStorage.getItem(varName);
if(arr == null) {
arr = new Array();
}
else {
arr = JSON.parse(arr);
}
return arr;
}/code
thanks Katya,
will this new code work with both ios and android, or do I keep old code for iphone
It must be working. I'll test.
It works with iPhone.
thanks ever so much, perfect, 1 other thing, I needed to set the date on load to show todays date, is there a script for this,
thanks Katya, you have been fantastic!
You can run this JavaScript code to set current date in Datepicker:
code
var datepicker = Tiggzi('mobiledatepicker1_2');
var dateFormat = datepicker.attr('dateFormat');
var currentDate = $.datepicker.formatDate(dateFormat, new Date());
datepicker.attr('defaultDateValue', currentDate);
/code
Insert your DatePicker component name instead of 'mobiledatepicker1_2' if it differs.