Jump to content

Search the Community

Showing results for tags 'amount'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. I´d like to get the amount between "(+$" and ")" and add it to the value of the inputbox. For example, you select the following:Solero Exotic (+$1.85)Cappuccino (+$2.49)iMac 27-inch 3.1GHz (+$1,999.00) These amounts will be subtracted from the options you've selected:1.852.491,999.00 The inputbox will display: 2003.34 But here's the tricky part, I need to do this without changing the existing attribute values or adding new attributes to the Option tag. Anyone know a javascript code that can do this? If possible, please post a sample. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Get Amount And Put Elsewhere</title></head> <body> <form action=""> <fieldset> <ul style="list-style:none;padding-left:0;"> <li>Ice Cream: <select class="optionsIceCream" name="IceCream"> <option value="IceCream01">Select Ice Cream</option> <option value="IceCream02">Solero Exotic (+$1.85)</option> <option value="IceCream03">Magnum Ecuador (+$4.85)</option> <option value="IceCream04">Cornetto Enigma (+$2.00)</option> </select> </li> <li>Coffee: <select class="optionsCoffee" name="Coffee"> <option value="Coffee01">Select Coffee</option> <option value="Coffee02">Cup of Joe (+$0.99)</option> <option value="Coffee03">Cappuccino (+$2.49)</option> <option value="Coffee04">Latte Macchiato (+$2.99)</option> </select> </li> <li>Computers: <select class="optionsComputers" name="Computers"> <option value="Computer01">Select Computer</option> <option value="Computer02">Dell Inspiron 620 (+$449.99)</option> <option value="Computer03">HP Pavilion dv7t (+$949.99)</option> <option value="Computer04">iMac 27-inch 3.1GHz (+$1,999.00)</option> </select> </li> </ul> Total: <input class="totalAmount" type="text" disabled="disabled" value="0.00" /> </fieldset> </form> </body></html>
×
×
  • Create New...