I'm trying to reset the form when the user click on the back button. Here is the code that I use.
<input type="text" name="name">
<input type="text" name="email>
...
$(function() {
$('input[type=text]').attr('val', '');
});
This code is not working on Safari 6.0.2. I notice that the page load event is not even fired when the user click on the back button.
What could be the problem ?