document.getElementById('text').innerHTML += "<td class='surveyquest'>5. Years of Services :</td></tr>";
document.getElementById('text').innerHTML +=
"<tr>
<td>
<select name='services" + fields + "' title='Years of Services'>
var myDate = new Date();
var year = myDate.getFullYear();
for(var i = 2008; i < year+1; i++)
{
document.write('<option value=\"'+i+'\">'+i+'</option>');
}
</select>
</td>
</tr>";
问题是选择框出现如下:
我怎么解决这个问题?