summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknown Name <steve9000>2014-12-10 09:59:34 +0000
committerUnknown Name <steve9000>2014-12-10 09:59:34 +0000
commitacb3ee1a7f916ce89a1615d9df96758ff6e52234 (patch)
tree706b0b907a6d4a86ad3d4b560a3a47c102a40bc6
parent1c7af2e8f3da1aa2ba0d535196446f8e79809943 (diff)
downloadcherrypy-acb3ee1a7f916ce89a1615d9df96758ff6e52234.tar.gz
Fix PUT request - it wasn't submitting the input field, only a blank string
-rw-r--r--docs/tutorials.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorials.rst b/docs/tutorials.rst
index d063ebcf..dea1a079 100644
--- a/docs/tutorials.rst
+++ b/docs/tutorials.rst
@@ -600,7 +600,7 @@ Save the following HTML code into a file named `index.html`.
$.ajax({
type: "PUT",
url: "/generator",
- data: {"another_string": $("#the-string").val()}
+ data: {"another_string": $("#the-string input").val()}
})
.done(function() {
alert("Replaced!");