my dog learned polymorphism
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: 33113

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Html Phone Number
It's not a secret anymore!