aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Html Phone Number" Watch "Html Phone Number" New topic
Author

Html Phone Number

krish chaitu
Ranch Hand

Joined: Oct 09, 2007
Posts: 32
Hi,

I have a requirement where i have 3 text fields to enter a phone no in (xxx-xxx-xxxx) format.so 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 one.in my form when i say form.getxxx() i need to get the entire no entered

Please help me

Thanks
krish
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29274
    
140

Krish,
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Html Phone Number
 
Similar Threads
xml
About SvltRequest.getParameter(..) Can this be?
dealing with jsf components in java script
Push Registry
How Multiple SubStrings of a String has to be replaced with multiple values