Sunday, January 28, 2018

javascript - How to show alert box after the link is click





Hello this is what i want to do. I want to show the alert box after the user click the link. My link is directed to another php page but it will come back again to the page where the link is found. How can i achieve this? Can someone give me ideas on how to do it?



this is what i tried but not working.





function fsa() {
echo '
';
echo 'Successfully posted!';
echo '
';
}


Import Database

Answer




This is an example to show the dissmissable alert box when clicking on a button.





$(document).ready(function() {
$('.activater').click(function() {
$('.alert').show()
})
});

.alert {

display: none;
}







Dismissal Alert Messages




SHOW MESSAGE


Success! message sent successfully.








No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...