Answer the question
In order to leave comments, you need to log in
Why does the console give me $.cookie() is not function?
Plugin connected, order of connections (tried to change the name of the plugin, did not help)
<script src="js/vendor/jquery-3.1.1.js" type="text/javascript"></script>
<script src="js/vendor/jqueryCookie.js" type="text/javascript"></script>
<script src="js/vendor/bootstrap.js" type="text/javascript"></script>
<script src="js/makeFirstOrder.js" type="text/javascript"></script>
$.post("/functions/makeFirstOrder.php",
{name:Name,surname:Surname,
patron:Patron,email:Email,
login:login,password:Password, OrderName:orderName,
OrderObject:orderObject,OrderComment:orderComment},
function(data,status)
{
alert(data+" "+status);
$.cookie("type","customer");
$.cookie("id",data);
var url = "http://noproblems.com/customerDashBoard";
$(location).attr('href',url);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question