Questions tagged [jquery-calculation]
103 questions
0
votes
1 answer
jQuery Calculations not working out
I'm using the jQuery Calculator plugin (http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm) and have stumbled across a small problem when calculating the cost of cupcakes.
I need £19 for 1-12 products, £37 for 13-24…

Craig Eves
- 1
- 1
0
votes
1 answer
jQuery: Stop window height recalclulation once conditional statement returns false
I have a jQuery function which changes the size of columns if some conditions are met. The function starts working once the window has been resized. But it doesn's stop recalculations once the conditions return false.
How it could be solved?
Here is…

Kuzma
- 679
- 1
- 12
- 36
0
votes
1 answer
Javascript Driven Table Values
I'm working on a Product Detail page that allows users to choose the number of products to purchase. I currently have the quantity dial working properly, but I need to piggyback on such feature to update a table that displays the total purchase…

Marcelo Martins
- 150
- 15
0
votes
2 answers
Simple Percentage Calculation of an Input Field with JQuery
I'm building a PayPal form that the user enters the amount and after that transfered to paypal,
everything is working fine but i need to add a calculation plugin to do the following,
If a user enters in the field 10$ (Calculate 10$-2%=8$) and…

Philip
- 5,011
- 2
- 30
- 36
0
votes
3 answers
jQuery Promo code function
I'm using the following code to execute a value update based on a code entered. But it returns wrong.
Ex: If the promo code is to reduce the price by 10, and the current total is 100, this returns 80. which should be…

JudeAinsly
- 73
- 2
- 12
0
votes
0 answers
Adding the total amount of each row together
I would like to add all the rows together using mvc ,the rows are name and total spending ,these 2 rows are saved inside database, now i would like to add one more row which is total spending for all. May I know how could I get it done?
To sum up…

HelpNeeded
- 33
- 1
- 1
- 9
0
votes
0 answers
Calculate Hours between 2 Time Inputs
So i have 2 input fields(BeginTime and EndTime) and a user can insert time with a time picker plugin called Datebox using the 24 Hour time Format. On Change those inputs should calculate the hours between those times.e.g BeginTime: 08:00 …

TheWandererr
- 514
- 1
- 8
- 34
0
votes
3 answers
jQuery get text as number and print result
My code doesn't work
function compute() {
if ( $('option[name=oage]:checked').val() != undefined ) {
var a = $('input[name=odeliv]').val();
var b = $('select[name=oage]').val();
var c =…

NickSan
- 5
- 2
0
votes
1 answer
Calculate sum based on field inputs
How can I sum the values of multiple text inputs?
Currently the sum is not correct as it keeps on remembering and summing previous values that were in the input fields before.
I have the following code:
HTML:
…

user2237168
- 305
- 1
- 3
- 17
0
votes
2 answers
How to calculate total in a table using javascript
I have tried to do the calculation of the marks obtained and want it to display in a table. As in the javascript, the calculation that i have did is as below: