I'm having trouble with jQuery and Mozzila Firefox. Everything is working just fine in Chrome, but somehow Firefox does not see jQuery.
This is how I call jQuery
<!-- Favicon and touch icons -->
<link rel="shortcut icon" href="assets/ico/favicon.png">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script type="text/javascript" src="assets/bootstrap/js/datepicker.js"></script>
And this is where it fails (error is: ReferenceError: $ is not defined):
<script>
function ajax_check(){
var id = $("#xml_select").val(); // this is the line where I get error
$.ajax({
url: "ajax_check.php?id="+id,
success: function(response) {
var result = jQuery.parseJSON(response);
//console.log( JSON.stringify(result['ncp'].replace('"','')) );
var ncp = JSON.stringify(result['ncp']);
var id = JSON.stringify(result['id']);
$("#racun").val(ncp.substring(1,12));
$("#id_podnosilac").val(id.substring(1,5));
},
});
}
</script>
Please help, what could be causing this?