Skip to content

Commit

Permalink
Add default for data-method
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamu committed Dec 31, 2017
1 parent fd0a690 commit 2791128
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -404,7 +404,8 @@ from the DOM any elements found in the specified CSS selector.

#### data-method

Defines the request method, i.e. "GET" or "POST".
Defines the request method, i.e. "POST". If this attribute is not provided,
the request method defaults to "GET".

```html
<a href="/tasks/2323/delete/" class="ajax" data-method="post">
Expand Down

0 comments on commit 2791128

Please sign in to comment.