I really like Noty plugin but i can`t understand how could i pass some text to it.
I`ve got the following flash messages markup:
<div class="flash-messages">
<div class="flash-message notice">Signed out successfully.</div>
</div>
To use noty i can simply call:
var noty = noty({text: 'noty - a jquery notification library!'});
But how could i pass the text from .flash-message to text option of the noty?
I also want .notice .error classes to manipulate noty styles.
Many thanks in advance!
1 Answer