GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes Html Phone Number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Html Phone Number" Watch "Html Phone Number" New topic

Html Phone Number

krish chaitu
Ranch Hand

Joined: Oct 09, 2007
Posts: 32

I have a requirement where i have 3 text fields to enter a phone no in (xxx-xxx-xxxx) i need to get this value entered in 3 textfields as one value ,as i know each text field has its own name so how can i make it in to my form when i say form.getxxx() i need to get the entire no entered

Please help me

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 30586

While you could use Javascript to make it one value, why not do this on the server side? Your form could have the three fields. And you could add another getter method that concatenates them.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
GeeCON Prague 2014
subject: Html Phone Number