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

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -