[Solved] how to get the time when exiting a textfield? [closed]


On keyup, store the current time in a hidden input.

http://jsfiddle.net/trevordixon/hL8YB/

<input type="text" name="name" id="name_input">
<input type="hidden" name="name_time" id="name_time_input" size="100">

<script>
$('#name_input').keyup(function() {
    var now = new Date();
    $('#name_time_input').val(now.toString());
});
</script>

1

solved how to get the time when exiting a textfield? [closed]