how to display an alert using javascript


Topic: how to display an alert using javascript

nskalis premium asked a year ago

hi,

I cannot find an example of displaying an alert via JavaScript, would you be so kind to explain how-to ?


https://mdbootstrap.com/docs/jquery/components/alerts/#triggers


Mateusz Łubianka staff answered a year ago

Hi @nskalis,

Like you can see in MDB documentation, there is not any option to show alerts via js. Also triggers and methods concern only 'dismiss', 'close'.

You can to check modals or notifications.

https://mdbootstrap.com/docs/jquery/modals/basic/#via-JavaScript https://mdbootstrap.com/docs/jquery/javascript/notifications/#toastshow

Best,


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Free
  • Premium support: Yes
  • Technology: jQuery
  • MDB Version: 4.14.0
  • Device: all
  • Browser: all
  • OS: all
  • Provided sample code: No
  • Provided link: Yes
Tags