We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2d6508 commit 05c7f9dCopy full SHA for 05c7f9d
templates/create.html
@@ -19,6 +19,7 @@ <h1>Enter the asking values!</h1>
19
<br> <br>
20
<input type="submit">
21
22
+ <p id="state"></p>
23
</form>
24
</center>
25
@@ -27,8 +28,12 @@ <h1>Enter the asking values!</h1>
27
28
$(document).on('submit','#post-form',function(e){
29
30
e.preventDefault();
31
+ $("#state").empty();
32
+ $("#state").append("Sending...");
33
+
34
35
$.ajax({
36
37
type: 'POST',
38
url: "{% url 'createData' %}",
39
data: {
@@ -37,7 +42,10 @@ <h1>Enter the asking values!</h1>
42
csrfmiddlewaretoken:$('input[name=csrfmiddlewaretoken]').val(),
43
},
44
success : function(data){
40
- alert(data);
45
+ //alert(data);
46
47
+ $("#state").append(data);
48
41
49
50
51
});
0 commit comments