javascript - Twitter Bootstrap alert (notification) dynamically change text -
simple question, didn't succeed finding satisfactory answer on so.
when have bootstrap alert:
<div id='alert' class='alert alert-error hide'>alert.</div>
i want text controlled using either javascript of jquery, looked @ solution this problem, have complicated? really?
as simple as: $("#alert").text("my new text");
Comments
Post a Comment