$("#last_4_cc").keyup(function()
{
$.post('<?php echo site_url("sales/set_last_4_cc");?>', {last_4_cc: $('#last_4_cc').val()});
});
When doing keypress() or keydown() I get the value before the key is inputed, when I do key up, I get the val() for the after the key is inputed.
Example:
Cur Value: 333
keyPress "3" Cur Val 333
Cur Value: 333
keyUp "3" Cur Val 3333
Why is this?