Sunday, 28 January 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

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...