Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
119
rated 0 times [  123] [ 4]  / answers: 1 / hits: 17112  / 7 Years ago, tue, december 19, 2017, 12:00:00

I want to use toastr to notify the user. I have followed this guide to set it up. But I get the error message: Uncaught TypeError: toastr is not a function. I have looked at the network tab and the files are loading properly. Tried with a cdn to be sure. But no luck. This is how I tried to use it:



    toastr('Are you the 6 fingered man?');


As in the demo. Any suggestions about what I am doing wrong?


More From » jquery

 Answers
2

According to the documentation you linked, it should be used like this:



toastr.info('Are you the 6 fingered man?')


You forgot to call the function info().


[#55639] Saturday, December 16, 2017, 7 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
agustindejonm

Total Points: 738
Total Questions: 84
Total Answers: 84

Location: Northern Ireland
Member since Mon, Nov 14, 2022
2 Years ago
agustindejonm questions
Fri, Jun 25, 21, 00:00, 3 Years ago
Fri, Sep 18, 20, 00:00, 4 Years ago
Sat, May 16, 20, 00:00, 4 Years ago
;