jsfiddle error {"error": "Please use POST request"} when submitting a form

anon picture anon · Jun 26, 2014 · Viewed 16.2k times · Source

I'm new to using JSfiddle and get this error: {"error": "Please use POST request"} everytime I submit the form. What I have understood, you cannot submit a post request in JSfiddle, so how I can append something to a form?

<form>
  <label>Add</label>
  <input type="text"/>
</form>  

$('form').on("submit", function(){
  $('form').after("apple")
});

Answer

John Conde picture John Conde · Jun 26, 2014

If you do not explicitly set a form method browsers will default to using GET.

<form method="POST">