Reputation: 2169
I am manually setting a value to a JQuery mobile select menu like this (I need to do this when my page loads):
$('#ddlCountries').val(1);
Then updating the UI:
$('#ddlCountries').selectmenu("refresh", true);
But the change event doesn't get fired at all. I do an ajax request when that event fires.
If I run:
$('#ddlCountries').change();
Then the ajax request is executed.
Is there a way to actually simulate a manual change/select operation inside the select menu?
Upvotes: 0
Views: 225