I want to capture the TAB keypress, cancel the default action and call my own javascript function.
$('#textbox').live('keypress', function(e) { if (e.keyCode === 9) { e.preventDefault(); // do work } });