Hello.
I am new with framework7 . I am trying to implement an Smart Select but so far I am absoluty stack and example works really well but I need to charge the items in the smart Selec using a service.I have found an anwers on stackoverflow but is more confused for me:
So, please,could anyone write an example for dummies charging a smartSelect with data
this is my html
<a class="item-link smart-select smart-select-init" data-open-in="popover">
<select name="superhero" id="gender" >
<option value="Batman" selected>Batman</option>
<option value="Superman">Superman</option>
<option value="Hulk">Hulk</option>
</select>
<div class="item-content">
<div class="item-inner">
<div class="item-title">Titulo</div>
</div>
</div>
</a>
```
and this is my javascript
function loadData(){
var data = _db_getData(); //get data from database
myApp.smartSelect.create('.smart-select');
myApp.smartSelect.get('.smart-select').setValue(data);
//does not work I guess I have to implement more staff...
}