Okay, I\'ll be short. I have this script which is putting values in database. It\'s working perfect in Chrome, Safari, but can\'t make it work in Firefox or IE. It seems tha
The Firefox missing the $ajax
async call has been fixed in the Firefox v49.0.2 and above.
$(document).ready(function(){
$("#dodaj").click(function(){
event.preventDefault();
var kategorija = $("#kategorija option:selected").val();
var si = $("#si").val();
var hu = $("#hu").val();
var de = $("#de").val();
var an = $("#an").val();
var hr = $("#hr").val();
$.ajax({
type: "POST",
url: "dodaj_v_bazo.php",
data: {"kategorija": kategorija, "si": si, "hu": hu, "de": de, "an": an, "hr": hr},
success: function(data){
alert( "Jed uspešno dodana."+data);
},
});
return false;
});
});
The above code will work when you upgrade to Firefox v49.0.2 or above.