Date: November 3, 2015, 3:27 pm Author: Akram Hossain
Have a look at
http://www.webmasterworld.com/forum88/7382.htm
I believe that it will work OK if you escape the ' character thus: '
You can easily create a Javascript function to replace each instance of ' by '.
str = str.replace(/'/g, "\'");
Date: July 23, 2015, 11:40 am Author: Akram Hossain
Assumption here is that you're referencing the script incorrectly and the web server is serving a 404 html page. Make sure the js file is where you're referencing it from.
for reference https://github.com/carhartl/jquery-cookie/issues/347#event-230595231