I want to update table when any option is selected from select box. I have given click event. It’s working fine in every browser except chrome.
I have tried many solutions from here, but None work for me.
$('.staty').click(function(){
var imids = this.id;
var ts=this.value;
var con = confirm("Do you want to change the status?");
if(con == true){
ajax_img_edit('deletefiles.php', 'pesto=patos&sat_id='+imids + '&juggu=' + ts);
}
});
});
function ajax_img_edit(url, data) {
var a = $.ajax ({
type : "post",
data : data,
url : url,
cache : false,
dataType : "html",
async : false
});
return a.responseText;
}
</script>