input fields for dollar and cents.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • canabatz
    New Member
    • Oct 2008
    • 155

    input fields for dollar and cents.

    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!!!
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    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.

    Comment

    • canabatz
      New Member
      • Oct 2008
      • 155

      #3
      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 !

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        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.

        Comment

        Working...