php - Twitter bootstrap how to hide error message on initialization? -
i have simple alert message should show when there error. don't know how hide message on initialization. if manually hide message error message stays hidden when there error.
<div class="alert alert-error"> <button class="close" data-dismiss="alert" type="button">×</button> <?php echo $error?> </div>
try this
<?php if(isset($error)): ?><div class="alert"> <button type="button" class="close" data-dismiss="alert">×</button> <?php echo $error; ?> </div> <?php endif; ?>
make sure include bootstrap.js , jquery.js correctly
php twitter-bootstrap
No comments:
Post a Comment