Can jQuery's fadeIn work without AJAX?
- by Thierry Lam
I'm submitting a form, sometimes I have some messages that I want to show to the user. I want those messages to jQuery fadeIn after they click on the submit button. Is it possible to achieve that if the submission doesn't involve any AJAX?
Here's a sample Django/Python code:
# View code
message = 'feedback to user'
# Template
<div id="messages">{{ message }}</div>
The equivalent PHP code of the above might be:
<?php
$message = 'feedback to user';
?>
<div id="messages"><?= $message ?></div>
I want #messages above to fade in after a POST. How can I achieve that?