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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

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
 
    Bookmark Topic Watch Topic
  • New Topic