Questions tagged [jquery-calculation]
103 questions
0
votes
1 answer
jQuery - display of calculations based on form update with keyup
It is a basic sample order form with 4 input (units number). When I put values in, all corresponding information being displayed and calulations made (unit * price). Each time I add another item I want to get total value of order. There is something…

Nita
- 561
- 5
- 28
0
votes
1 answer
Problem using jQuery calculation with European-formatted numbers
I am calculating rows with a total with the jQuery.Calculation plugin but the total is ignoring everything after the decimal symbol. I suspect the fix lies in the regex but I can't figure out where.
The following method should set the default…

terjetyl
- 9,497
- 4
- 54
- 72
0
votes
1 answer
Using jQuery to add values from 3 different types of form fields?
I have a form with an input type text field, a select menu and a checkbox. Each form field stores a numerical value, depending on what the user enters, selects or checks.
Is it possible to use jQuery to add these three values and present the total…

NathonJones
- 919
- 4
- 13
- 28
0
votes
2 answers
jQuery set var to 0 in a form
I'm so close to create my form i need. But there is still a "bug". I wan't create a form where a customer can calucate how expensive something will be. I'm sure there are a lot of shorter ways to build the whole thing, but this is not the question.…

Fabrizio Cocco
- 171
- 10
0
votes
2 answers
Javascript calculate the sum of all input fields with a specific class
Okay, i have this code which is working fine to a specific point.
$(document).ready(function(){
var val1 = +$(".charge").val();
var val2 = +$(".fee").val();
var val3 = +$(".loadrate").val();
…

Radoslav Trenev
- 353
- 1
- 6
- 17
0
votes
1 answer
calculation with select option value using javascript
I have query related to javascript that we call a function where is id in select option tag. So can we use this id for calculation in other function? how to get this id? If yes then how? If no then please give me some other idea..
How to read this…

Isha
- 27
- 6
0
votes
1 answer
Javascript checkbox calculation
I am trying to build a form calculation javascript that works fine with radio buttons, but I haven't been able to make it work with checkboxes.
The form includes a domain whois check, which generates checkboxes with the name 'domain' and the value…

Bert Slater
- 1
- 1
0
votes
1 answer
Calculation in Javascript without rounding decimal numbers
Guys I got a text box wherein users may enter valid decimal numbers.
And later I have to do calculations with this decimal number without rounding it.
Currently I am working as
var pricePerItemExVat = Math.round($("#InnerCaseWsp").val()) /…

Nishant Rambhojun
- 77
- 1
- 2
- 10
0
votes
1 answer
Calculation using Javascript
var pricePerItemExVat = parseInt($("#ConsumerWSP").val()) / parseInt($("#ConsumerItemSellUnit").val());
var pricePerItemIncVat = pricePerItemExVat + (pricePerItemExVat * parseInt($("#pricingConsumerVat").text()));
var consumerPor =…

Nishant Rambhojun
- 77
- 1
- 2
- 10
0
votes
1 answer
Subtract values in table with similar class name
I have a table in which I want to subtract values in columns. However, instead of subtracting the values it keeps adding up.
jsFiddle.
HTML:
Contract Amount…![]()
input
0
votes
3 answers
Two dimensional array help output a valueI have a form where users can ship pallets for fixed costs depending on their location. Currently this is for UK and France. For each country they are spilt up into 4 zones.
So we have a table like this:
I was thinking the best way to do this is to…
![]()
Barry Corrigan
0
votes
3 answers
Calculate From To Time Difference - Total Work TimeI need to calculate time difference 24Hrs Time.
some thing seems wrong in the code
if ( shiftToMin >= shiftFromMin ){
shiftTotalMin = shiftToMin - shiftFromMin;
if( shiftFromHr < shiftToHr ){
shiftTotalHr = shiftToHr -…
![]()
epynic
0
votes
1 answer
Subtract from parent rowsI'm trying to subtract the value of parent header rows (which are the sum of their respective child rows) but it just keeps on adding while displaying the minus symbol. How do I subtract?
jsFiddle
HTML:
|