Here is the code - http://jsfiddle.net/and7ey/k2J5v/8/. Once button is pressed, default value (value="0"
) should be chosen there.
I've tried
$("#cbCity").val("0"); // cbCity - combobox
But it doesn't work. Looks like I also need to change the value of input element.
Such change should not call select
.
Upd. I've also tried to do the following:
$("#cbCity").html('<option value="0" selected>Any city</option>');
$("#cbCity").val("0");
It doesn't work.