javascript - Toastr doesn't fire when using options -
i'm trying use toastr js library.
i included toastr.js, toastr.css , toastr-responsive.css works:
toastr.info("hello world");
but doesn't work. , don't error in browser console:
toastr.options.positionclass = "toast-top-full-width"; toastr.info("hello world");
what cause?
create fiddle , show me doing.
update:
you should not link raw css , javascript in github. not cdns, not set serve code. should pull code down project or use nuget in visual studio.
for example, works fine if copy css jsfiddle css window this: http://jsfiddle.net/7ucj9/10/
and complete, here minor code change made ... had nothing it
$(function () { toastr.info("are 6 fingered man?"); $("#foo1").click(function () { alert("test"); }); $("#foo2").click(function () { toastr.info("are 6 fingered man?"); console.log("hello"); }); });
Comments
Post a Comment