Error: <a href="" id="dfddis" onclick="Alertbox();">Alert</a> function Alertbox() { alert('The Alert!'); } - This will throw {"error": "Please use POST request"} in jsFiddle.net Fix : Jquery tries to navigate to an empty target. A '#' will keep the link target within the same page / document. Use a '#' in the href. <a href= "#" id="dfddis" onclick="Alertbox();">Alert</a> Reference: http://jsfiddle.net/XPLr6/3/
From the tech stacks I climbed and learned