mercredi 29 mars 2017

ember js pragmatically set selected option

This is my sample drop down

<select name="newType" class="parts-select full-width-combo" onchange=>
            <option value="" selected  hidden >Select </option>
            
                <option value=""></option>
            
 </select>

from the relevant template action I wanted to set this selected item dynamically.

As an example it default selected by "Select" and then based on some button click on that page and need to set my selected option to other selected option to be selected. I am not using any plugin and I can't do it here.




Aucun commentaire:

Enregistrer un commentaire