User can only enter letters and digits in a input text box

Original code is from: http://stackoverflow.com/questions/895659/how-do-i-block-or-restrict-special-characters-from-input-fields-with-jquery