|
||||||
| HTML Programming Forum discussion covering HTML, XHTML, DHTML and all flavors of HTML. Hypertext Markup Language is used to create websites. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I am creating a simple webpage with an image in the background and multiple comboboxes (<select> tag) for the user to select values. Here is one of the comboboxes: Code:
<select style="position:absolute; left:919px; top:288px; background-color: blue; color: white;" id="cze us" class="us"> <option selected>0 <option>1 <option>2 <option>3 <option>4 <option>5 <option>6 <option>7 <option>8 <option>9 <option>10 <option>11 </select> 1. How could I add values in multiple comboboxes selected, e.g. 1,3,2,6,0 together to a sum value with a button click? 2. Or would it be possible to make the addition interactive - e.g. once the user selects a different value in a combobox, the sum would be adjusted? 3. How could I store the current selections in multiple comboboxes in a txt file on the server and then recall it later? Thx! Joe |
|
|||||
|
Your code should really look more like this: Code:
<select style="position:absolute; left:919px; top:288px; background-color: blue; color: white;" id="cze us" class="us"> <option selected value="0">0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> </select>
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. My CodeCall Blog | My Personal Blog Last edited by WingedPanther; 11-21-2008 at 11:20 AM.. Reason: formatting |
|
|||||
|
If you want the items to be added without reloading the page, then you need to use JavaScript. My code above was just to add the items when the user opens the page. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Choosing the right language / data structure / Interface | ups | General Programming | 1 | 09-20-2008 09:11 AM |
| C#:Tutorial - Download Data | Xav | CSharp Tutorials | 9 | 04-23-2008 03:18 PM |
| Java:Tutorial - Data Types | John | Java Tutorials | 6 | 07-02-2007 09:16 PM |
Algorithms and Data Structures
Programming Language Popularity
Code Collaboration
Podnet IRC Network
AmpHosted
Goal #1: 1,000 Blogs
Goal #2: 1,000 Wiki Pages
Goal #3: 300,000 Posts
Goal #4: 20,000 Threads
Done: 30%, 23%, 55%, 75%