I have a form in which the user must initial a bunch of different sections.
<script>
$.function(){
$('.initialMe').change(function(){
var id = $(this).attr('id');
alert(id);
});
});
</script>
<?php
echo "<div class='signature'>Initial Here:<input type='text' class='initialMe' id='sign[service1]' name='sign[service1]' size='4'></div>";
echo "<div class='signature'>Initial Here:<input type='text' class='initialMe' id='sign[service2]' name='sign[service2]' size='4'></div>";
?>
I want to fire off an action when they are done initializing the text box. I don't want to use change because they have to click off somewhere for event to be fired. I don't want to use keyup, because event will fire after first letter of initials. I do not know if user will use 2 letters or 3 for initials. This is not a submittable form. Think of it as a legal document where the user has to initial different sections of the page. What options do I have?