I have a text box on a HTML page, the idea is that the user can enter any text into the box and then Jquery will remove every other than letters of the alphabet.
This is what I have come up with, it works for small text samples, 1-2 lines, however anything over this it only works on a small section of the input text, is there a better way to do this?
$("#read").change(function () {
read = $("#read").val().toLowerCase().replace(/[^a-z]+/, '');
$("#read").val(read);
});
replace()is not a jquery method.