I not exactly sure how to example this but here goes !
I am wanting to add alert messages into a website I am creating. Examples can be found here:
Depending on inputs from a form I want to display different messages. So php checks for correct inputs and fields selected.
Examples of Messages:
1) Alert Danger - a password must be between 6 and 16 character long and include letters and numbers
2) Alert Warning - Update your profile.
I want all these messages to be display within the same div tag - message-warning-display.
<div class="message-warning-display" display:"hide">
<div class="alert alert-warning">
<a href="#" class="close" data-dismiss="alert">×</a>
<strong>Warning!</strong> There was a problem with your network connection.
</div>
</div>
I imagine it is something to with php calling a particular JavaScript function which is called and then shows the message / set the display to show instead of hide.