$(document).off("click", ".switch_cities").on("click", ".switch_cities", function(e) {
alert('uuuu');
e.preventDefault();
var r = $("#from").val(),
t = $("#to").val();
("" != r || "" != t) && ($("#from").val(t), $("#to").val(r))
})
The above code is used to switch cities in two text boxes it works in Firefox and chrome but it doesn't work in Various mobile views of chrome