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

Can titanium android module read the database created using Ti.Database?

titanium titanium-mobile titanium-modules

Database is created (and updated) using Ti.Database with titanium code. I have created an android module. Is it possible that the created android module can read the database created using titanium...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.