My template:
<select name="lang" id="lang" onchange=>
<option value="">--Choose--</option>
<option value=""></option>
</select>
lang.url has one of the values: ['php', 'javascript', ...]
My Controller:
lang: 'php', //this is not working, I am thinking of something like lang.url or lang.get('url') but looks like it is still not right ..
actions: {
selectOption: function(option) {
this.set("lang", option);
}
How can I set the default value of select to php?
Aucun commentaire:
Enregistrer un commentaire