Skip to main content

Posts

Showing posts with the label href #

jsfiddle.net {"error": "Please use POST request"} on a href = ""

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/