only characters in IE8 html text box

I want to restrict user to enter only characters in a html text box. I am using the following code

 $('.alphaonly').live("input", function () {
     $(this).val($(this).val().replace(/[^A-Za-zÀ-ÿ ]/g, ''));

and this works fine in IE9, but fails in IE8.

Can anyone help me fixing ?


Is much easier to use a plugin I mean:


Need Your Help

Assigning data from a variable output argument list

function matlab arguments

Consider a function varargout = foo(varargin). I know how to format a comma separated list so we can generate varargin automatically. E.g. [x y z] = ndgrid(-1:1,-1:1,-1:1) is equivalent to:

Enable 32 bit application on Azure Website azure azure-web-roles

I am surprised but I cannot seem to find much on this on the internet.

Display superscript % using NSNumberFormatter

ios uilabel nsnumberformatter

I'm using an NSNumberFormatter to display a percentage: