Search found 137 matches

Go to advanced search

by Nicklas
Thu Jul 03, 2014 7:38 pm
Forum: Issues
Topic: How can I set a value in a select-menu to "0.001"?
Replies: 9
Views: 1340
 
Jump to post

How can I set a value in a select-menu to "0.001"?

This is my script if it helps. Number1 and number2 is a "Input" and select1 is a "Select". In the select I have to options: The first has value: 1 and the second has value: 0.001. Script: var one, two, three; one = parseInt(Appery("number1".val()); two = parseInt(Appery...
by Nicklas
Thu Jul 03, 2014 6:48 pm
Forum: Issues
Topic: How can I set a value in a select-menu to "0.001"?
Replies: 9
Views: 1340
 
Jump to post

How can I set a value in a select-menu to "0.001"?

Sorry but I forgot to tell you that Im trying to use the value in JavaScript with math. So when I tried to for example 20,001, the answer is 0, not 0,002. But when I changing the value to for example 6 (26) then the answer is 12.

by Nicklas
Thu Jul 03, 2014 3:31 pm
Forum: Issues
Topic: How can I set a value in a select-menu to "0.001"?
Replies: 9
Views: 1340
 
Jump to post

How can I set a value in a select-menu to "0.001"?

Yes. I've tried: 0,001 and 0.001 but it still comma cant be used and when I use dot, it just using the first number (in this case is 0, not 0.001)

by Nicklas
Thu Jul 03, 2014 3:05 pm
Forum: Issues
Topic: How can I set a value in a select-menu to "0.001"?
Replies: 9
Views: 1340
 
Jump to post

How can I set a value in a select-menu to "0.001"?

Hi Katya!
Yes, when I do it, it just use the number before comma, in this case 0.
Should it work like the way I set the value?

by Nicklas
Thu Jul 03, 2014 1:59 pm
Forum: Issues
Topic: How can I set a value in a select-menu to "0.001"?
Replies: 9
Views: 1340
 
Jump to post

How can I set a value in a select-menu to "0.001"?

Is it possible to set a value in a "select" to a decimal, for example 0,001. I've tried with 0.001, 1E-03 and 0,001? How can I do that?

by Nicklas
Thu Jul 03, 2014 10:13 am
Forum: Issues
Topic: How to alert math with javascript?
Replies: 7
Views: 1157
 
Jump to post

How to alert math with javascript?

Thank you very much!!

Another question

Is it possible to do the same but get the answer in another Input, or a label, textfield etc., not a alert?

by Nicklas
Thu Jul 03, 2014 8:51 am
Forum: Issues
Topic: How to alert math with javascript?
Replies: 7
Views: 1157
 
Jump to post

How to alert math with javascript?

Hey! I have two Input(fields) that I have named "InOne" and "InTwo". In this fields I want the user to input numbers, for example: InOne = 20 and InTwo = 2. When the user click a button named "Calculate" I want a "alert window" to pop up where the answer is wr...

Go to advanced search