Questions tagged [jquery-calculation]

101 questions
1
vote
0 answers

Yard-line to Endzone Football Distance Calculator Issues. Output not working

I'm working on a school project and came up with a football calculator app that uses html, css, js, and jquery. Essentially, the user inputs what yard-line your football team is on and it outputs how far away from the endzone you are. However, I…
sabrahms
  • 21
  • 2
1
vote
1 answer

Display results on keyup event and values inside form how to?

How do i display the output on keyup event rather than on submit and also the values inside the input fields? I tried readonly but its not working. can someone helo? Here is thew complete…
Seeker
  • 47
  • 7
1
vote
2 answers

jQuery counting percentage - shows "undefined"

My script should counts values in table but it can't replace '%' char and shows 'undefined'. I tried some solution but no luck. I made a fiddle: fiddle $('table .ilosc, table .cena_netto .stawka_vat').on('keyup paste change', function() { …
joryl
  • 149
  • 1
  • 17
1
vote
1 answer

jQuery - calculations of values in the multiple inputs

I have basic order form, i would like to sum values form all inputs . But when I add items program adds the values to a string insted summarizing them (totalUnits). Working jsfiddle: http://jsfiddle.net/nitadesign/97tnrepg/48/ and the part of a code…
Nita
  • 565
  • 5
  • 23
1
vote
2 answers

Calculation on Dynamic Rows using jAutoCalc Plugin

Am trying to do multiple simple calculations using the jAutoCalc.js jquery plugin in a form where the rows are dynamically added/removed. Please visit this link to see the live demo. While the calculation works for the first row it is not happening…
Rex
  • 55
  • 1
  • 6
1
vote
1 answer

Calculate with JS and create a chart bar with HTML elements

I have a problem with my code (Chart bar). The percent value of the first two charts is always "100" an the bar width "500px". The latest two charts is correct, but the total sum not. Here a view: http://i.stack.imgur.com/QY2i8.jpg The HTML:
1
vote
3 answers

JavaScript calculation when items are deleted

I have a problem when I remove a row from my table. I have a function that calculates the total price, sub-total etc, which works fine. However if I remove a row it will not re-calculate it i.e. remove the cost. 1) How can I fix this? 2) How can I…
cnorthfield
  • 3,108
  • 13
  • 22
1
vote
2 answers

simple jquery calculation

i have a site that has a "container" div that is 200% of the browser window width, and the overflow is hidden. some information is on the left half of the container (the first 100%), and some information is on the right half (the second 100%). i use…
Dd.
  • 23
  • 6
1
vote
1 answer

Real-time calculation of total in dynamic form

This issue has probably a very simple solution, but as a beginner in Javascript, I can't find the solution after trying different possibilities. So I have a form where people can reserve tickets at 6 or 10 Euros. Each line is a person. The user can…
thomas_inckx
  • 360
  • 2
  • 17
1
vote
1 answer

jquery convert results of decimal into fractions

I have code that converts pixels into inches. But the result is a decimal. How can I have the result return a fraction for the inch, example: 1/4 instead of .25 Here is the HTML:
AlwaysLearning
  • 187
  • 3
  • 5
  • 12
1
vote
1 answer

Add and set total value in corresponding input field

I'm trying to add the values in child rows in one column which should set the total in the parent row of that column. Each child td should add the value in the corresponding parent td. What is happening right now is while I can add up the values of…
input
  • 7,214
  • 23
  • 91
  • 143
1
vote
6 answers

Addition and subtraction multiple text fields

I have a table in which I'm trying to add and subtract multiple text fields using jQuery on keydown or blur. While I can add successfully, I get all wrong results for subtraction. HTML:
input
  • 7,214
  • 23
  • 91
  • 143
1
vote
1 answer

Live Calculation per row

I have a table that has several cells inside it one of it is quantity and the other is the unit price now I am having problem with calculating the subtotal for each row (blur). I don't know if I am heading on the right track.
1
vote
1 answer

Vertically Aligning Text - Not displaying properly in IE8

Good afternoon everyone, I've managed to write a script that calculates the width and height of an image and properly placed a string of text on the bottom right side of an image for usage with credits/captions. I've managed to get it to generate,…
Joey
  • 325
  • 2
  • 16
1
vote
1 answer

Adding Sales Tax to Jquery Calculation Plugin

Hi I need some help implementing a simple sales tax calculation to a delivery price estimation form that uses the Jquery Calculation Plugin that I'm sure many have come acros:…
TPM
  • 69
  • 8