diff --git a/docs/ref/csrf.txt b/docs/ref/csrf.txt index 84ba3724915..590990571fe 100644 --- a/docs/ref/csrf.txt +++ b/docs/ref/csrf.txt @@ -117,12 +117,12 @@ Acquiring the token is straightforward: } var csrftoken = getCookie('csrftoken'); -The above code could be simplified by using the `jQuery cookie plugin -`_ to replace ``getCookie``: +The above code could be simplified by using the `JavaScript Cookie library +`_ to replace ``getCookie``: .. code-block:: javascript - var csrftoken = $.cookie('csrftoken'); + var csrftoken = Cookies.get('csrftoken'); .. note::