Explore BrainMass

Explore BrainMass

    Javascript Form Validation

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    I am trying to check if the user has entered data into my web page form.
    The webpage form itself is finally working and done. My only trouble now is javascript and can't really get it to work.

    I have kind of figured out how to check for the entered data. What I don't know how to do is to change the first letter of the names,city,country to uppercase (and the rest to be remained lowercase letters).
    With the uppercase, I'd like to check if state is entered as 2 uppercase letters.

    Also I don't know how to check if product, system, used for is selected.

    And of course to get it working.

    © BrainMass Inc. brainmass.com October 10, 2019, 5:07 am ad1c9bdddf


    Solution Preview

    Dear student,

    Please find the solution attached.
    I have put some testing alerts. You can remove them if you ...

    Solution Summary

    This solution helps validate a Javascript form.