i m using a select box of country, when user select a country then add branch link appears and user add branches under that country, but when user want to change country then al
I'm posting this reply at the risk of ridicule because I'm admittedly pretty noob at this stuff (only been learning a month or two), but I was able to handle a similar situation (changing time zones) just doing this:
$(".timezonedropdown").change(function() {
var newVal = $(this).val();
if(!confirm("Are you sure?")) {
$(this).val($(this).closest('select').attr("data-originaltimezone"));
}
});
Then in my html I included data-originaltimezone="whatever" in the select. I had the class timezonedropdown for the select as well. Hope that helps! :)