Error: invalid regular expression flag
b Source File:
http://localhost/media/javascript/global.js
Line: 4, Column: 19 Source Code:
url: /home/blog,
$("#blog").click(function () {
var url = $(this).attr("href");
$.ajax ({
url: /home/blog,
type: "POST",
success : function (html) {
$("#someDiv").append(html);
}
});
});
I cant figure out what the error is, does my URL need to be in a string? What am I missing?
You want the url to be
"home/blog"