jQueryMobile me back to the main file pageChange calling the onchange event on a select
method call pageChange attempt to make a select onchange but jQueryMobile brings me to the desired file and followed me back again to the main file, show the code.
function myProduct(value){
var url="product.php?id="+value;
$.mobile.changePage(url);
}
<label for='product>Select:</label>
<select data-native-menu='false' id='product' class='product' onChange="javascript:myProduct(this.value)" >
<option value="">Select:</option>
<option value="1">car</option>
<option value="2">bike</option>
</select>
if I leave the native menu to false works correctly but I do not mean
data-native-menu='true'
I can someone help me please?