Since no one is able to help me textfield validation in firefox.
I will start again from my roots and hopefully come up with a solution!

Now there are several ways of validating text fields using javascript.
I would like to know ALL of them and ill test which work for my problem.

So if you all could give small examples of restricting input to only text or numbers or any characters.

Then I can work from that and hopefully come up with a solution.

Thankyou, Regads X

10 Years
Discussion Span
Last Post by Thirusha

you can go here http://articles.techrepublic.com.com/5100-10878_11-1044655.html

There are loads of other examples i just googled "restricting input to only text " and that is where i found the above link

I used regular expressions to prevent the user from entering non-numeric characters:

function checkNumeric(entry)
        var numeric = /^[0-9]*$/; 
        if (!numeric.test(entry.value)) 
               document.getElementById('errorText').style.display = '';
                    document.getElementById('errorText').style.display = 'none';
        entry.value = entry.value.replace(/[^0-9]/g,"");
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.