ons-select not firing change event
willcarenow last edited by
The select appears to be declared properly (is displayed as expected in the browser, chrome) but when an option is changed the
onchangeevent is never fired.
<ons-row id="ph-row"> <ons-col style="padding: 10px;"> <div class="label">Swap with</div> <ons-select id="ddlSwapWith" onchange="ddlSwapWithChange(event)"> <option value="0">select...</option> </ons-select> </ons-col> </ons-row>
There are no errors or any other signs of an issue in the js console.
The other events in the app appear to be working so I’m not sure what the deal is.
The app structure (housed in the js directory):
* html directory housing views (where select is defined)
* app.js (where event funtions are defined)
jamal last edited by
This works: https://onsen.io/v2/api/js/ons-select.html#main
May be your js file is not linked or the function is not declared properly. I suggest you create a CodePen to show the issue.