Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Multiplying values of dropdown list

 
Ranch Hand
Posts: 35
MyEclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi all...

In a dropdown list I am getting values from 1-10 and in another dropdown I am getting values like 1-0-1,1-1-1,0-0-1 like this...In next text box I need to multiply these 2 values...How to do that?(I mean if I select 2 from 1st list 1-0-1 from 2nd list I should calculate it as 2*(1+0+1)
 
Ranch Hand
Posts: 281
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
what did you try ?

have you tried doing it in Javascript ? or do you want to do it server side ?

you can take the first dropdown value and multiply to the second dropdown value after splitting the values 1-0-1 using the delimiter as '-'.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
This is the Spring Framework forum at JavaRanch. What is your Spring question?

Dropdowns are an HTML/JavaScript type question. So you are probably just posting in the wrong forum. I am going to close this thread and let you decide which forum is specific to your question and you can post in that forum.

Thanks for you help.

Mark
 
The happiness of your life depends upon the quality of your thoughts -Marcus Aurelius ... think about this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
    Bookmark Topic Watch Topic
  • New Topic