By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,741 Members | 1,973 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,741 IT Pros & Developers. It's quick & easy.

input fields for dollar and cents.

100+
P: 155
i need help creating a from for input price

i want two separate fields to hold dollars and cents ,and when i press on submit
the all price will be sent as: lets say 12.45

how can i do it ,im new to JS worls :)

thanx in advance!!!
Nov 1 '08 #1
Share this Question
Share on Google+
3 Replies


acoder
Expert Mod 15k+
P: 16,027
It'd be quite simple to combine the field values on the server-side. It is possible if you insist, though. You could also use one field and validate instead.
Nov 1 '08 #2

100+
P: 155
i need simple script example how to combine the two fields.

i have it working now in the server side ,and in the client i got one input field.
the user now need to write the dot between the dollars and the cents.

i want to have two fields and later i want it to jump from first field to second field after complete!

thanx !
Nov 1 '08 #3

acoder
Expert Mod 15k+
P: 16,027
What you can do is set a hidden field to the value of the two fields onsubmit and then use that field value in your server-side script.
Nov 2 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.