My friends want to ask where I have a problem displaying an "alert" message does not disappear in a few seconds, roughly where my code is wrong,
I am very grateful for the help.
html code
<?php if ($this->session->flashdata('success')): ?>
<div class="alert alert-danger">
<?php echo $this->session->flashdata('success'); ?>
</div>
<?php endif; ?>
javascript
$(document).ready(function()
{
setTimeout(function()
alert('success');
},
5000);
});