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:
http://www.thimbleopensource.com/tutorials-snippets/jquery-plugin-filter-text-input