/    Sign up×
Community /Pin to ProfileBookmark

need input validation help

I’ve got a form where I need to make sure that one or the other of two fields have been filled out. Specifically, I need to make sure either the home phone or cell phone fields are filled out. If both are filled out, that’s OK. But at least one of the two need to have something in them.

I know how to do the individual fields, but I’m not sure how to do an “or” in this case.

The page is here: [url]http://dmsgroup.co/hhconcrete/contact-us.html[/url]

Any help would be greatly appreciated… thanks!

SteveMTNO

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@SparoHawkJul 06.2012 — If you know how to use jQuery, you can check out this very good plugin:

http://bassistance.de/jquery-plugins/jquery-plugin-validation/

If not, let me know.
Copy linkTweet thisAlerts:
@LegsJul 07.2012 — Very useful plug-in, thank you very much. Solved my similar query.
Copy linkTweet thisAlerts:
@stevemtnoauthorJul 09.2012 — If you know how to use jQuery, you can check out this very good plugin:

http://bassistance.de/jquery-plugins/jquery-plugin-validation/

If not, let me know.[/QUOTE]


II have no idea what to do with this.. sorry...

Can you be a little more specific on how to make the input validation work?
×

Success!

Help @stevemtno spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...