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 ?

Answers


Is much easier to use a plugin I mean:

http://www.thimbleopensource.com/tutorials-snippets/jquery-plugin-filter-text-input

$('#text_input').filter_input({regex:'[a-z]'}); 

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

asp.net-mvc 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: