I am trying to populate a select dropdown list. This is a test code snippet i am trying to implement -
(here, data is an object containing the teams array)
This is the HTML -
var team_str = '<option selected="selected">Choose your team</option>';
var temp = ;
temp[i] = data.teams[i];
team_str += '<option id='+temp[i]+'>'+temp[i]+'</option>';
document.getElementById('teamlist').innerHTML = team_str;
<form id="leagueform" action="">
This works fine in the local preview (emulator) for the Series 40 Web Apps, but does not load anything on Asha 310, on which i am testing..
What could be going wrong?
PS - its not working even if i use jQuery..