27

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")
});
Yashu Mittal
  • 1,478
  • 3
  • 14
  • 32

1 Answers1

31

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

<form method="POST">
John Conde
  • 217,595
  • 99
  • 455
  • 496