Today i will show you how to use one Jquery function to show all bootstrap messages in whole application you don’t have to copy paste the whole bootstrap message structure just call the function with parameter.
function showalert(message,alerttype) {
if (typeof(message)==='undefined') message = "message not found";
if (typeof(alerttype)==='undefined') alerttype = "info";
$('.container').append('<div class="alert alert-'+alerttype +'">×'+message+'</div>')
}
My brother suggested I would possibly like this web site.
He was entirely right. This submit truly made my day.
You cann’t consider just how much time I had spent for this info!
Thank you!
I am really happy to read this blog posts which contains lotsof useful information, thanks for providing these statistics.
I really like reading through a post that will make people think.
Also, thanks for allowing me to comment!
Good article! We will be linking to this great content on our site.Keep up the good writing.
Thanks for the marvelous posting! I actually enjoyed reading it, you’re a
great author. I will always bookmark your blog and will come
back sometime soon. I want to encourage one to continue your great posts, have a
nice afternoon!
Good replies in return of this matter with genuine arguments and explainingeverything regarding that.