I tried:
$(\'input\').keyup(function() { $(this).attr(\'val\', \'\'); });
but it removes the entered text slightly after a letter is enter
Markup
Script
function preventInput(evnt) { //Checked In IE9,Chrome,FireFox if (evnt.which != 9) evnt.preventDefault();}