irankhosravi
2 months ago
144
7
Laravel

How to add link in sweet alert?

Posted 2 months ago by irankhosravi

I want to add 2 links in sweet alert. but I see this picture.

sweet alert

alert()->warning("You must register now.<br>", 'OK')->html()->persistent("<a href='http://maneh.com/register' class='btn btn-primary'>register</a><a href='http://maneh.com/login' class='btn btn-primary'>login</a>");

How to add login and register buttons in sweet alert.

Please sign in or create an account to participate in this conversation.