Questions tagged [jquery-calculation]

103 questions
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,…
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
1
vote
1 answer

jQuery Tip Calculator - Formulas with Variables Based on TextArea Inputs

I found a few threads that were helpful, but nothing answered my question directly, so here's the specific issue: To hone my limited jQuery skills I am creating a Split the Bill/Tip Calculator that calculates amounts on the click of a button based…
1
vote
2 answers

Calculate the average from 3 colors based on a percentage

How can I calculate the average of three colors based on a given percentage? For example we've green, yellow and red and want to get the average value: The simplest way to do this is to create an image like this one: And increase/decrease the…
yckart
  • 32,460
  • 9
  • 122
  • 129
1
vote
0 answers

jQuery - Unknown issue calculating average from sliders value

I got six jQuery UI sliders in a Wordpress metabox, I get they're values and output the average to a text input field (#pm_overall_score), this is the JS that handles this: var sum = 0 ; var nums = 0; $('.rwmb-slider').bind({ slidechange :…
djwd
  • 315
  • 2
  • 5
  • 15
1
vote
3 answers

jQuery mousemove direction, get correct distance

Howdey, i need to create a direction aware hovering effect, but stuck at the correct calculation. (Is it a calculation problem or rather a wrong markup?) Here's what I've done so far: The left and right arrows works as expected, but up and down…
yckart
  • 32,460
  • 9
  • 122
  • 129
1
vote
1 answer

jQuery mousemove (cursor "overview") wrong calculation

I'm trying to create a document/cursor "map-overview", however i stuck at the calculation. The pointer still exceeds the overview box. Here's what I've done so far: var box = $('#box'), pointer = box.find('i'); $(window).on('mousemove',…
yckart
  • 32,460
  • 9
  • 122
  • 129
1
vote
2 answers

Jquery calculation plugin for complex calculations

I've had a lot of help from a number of you over the past week or so with my first effort programming an application from the ground up. Thank you from the bottom of my code monkey heart! I need to add a points calculation function to my fantasy…
Cynthia
  • 5,273
  • 13
  • 42
  • 71
0
votes
1 answer

JQuery - Automatic Calculations

I'm having a period mental melt down here. For 2 days, I've been looking at numbers and trying to get this damn calculation to work, but now i can't get the result method to work. I'm having 1 textboxs, 2 checkboxs, 1 dropdown and a h1 where the…
Patrick R
  • 1,949
  • 3
  • 32
  • 58
0
votes
1 answer

Jquery: How multiplication of two fields by closest classname?

I have dynamic table where button on click add a new table row. On each row there is price, qty and total price input field. I want that when user put value on qty field, it will multiply price and qty and show on total price input. My…
Farlar
  • 47
  • 5
0
votes
0 answers

Dynamic row calculation with Jquery

I want to make sum of dynamic rows and addition.
0
votes
1 answer

Calculate total subsciption fee based on changing subscription fees

Im trying to calculate the total subscription fee for the penalty jar at my workplace. Every month everyone pays a certain fee on top of their penalties. It started out being 20DKK and now it's 25DKK. I have the tdata in two json objects - one with…
0
votes
3 answers

Why this code is not working properly on jQuery

I do not know where is the problem on this code and how to solve it. I want to add form input field and also calculated on properly. Problem described below: when I click add row button this page refresh. That wise I can't cheek the delete…
0
votes
1 answer

Update Calculations When Table Row is Added / Removed

Iam trying to using jAutoCalc Plugin to make some calculations on numbers and it's ok and The calculations are done correctly. But when I tried to use jquery.repeater plugin to add rows to table , the New rows are not counted within the calculation…
0
votes
1 answer

jQuery selector that selects class name with only one number following that class name

so I have the following structure:
1,2
2,2
5,4
3,2
etc... I want a jQuery selector that will select only num1 and num2, numX where X…
Nikola
  • 14,888
  • 21
  • 101
  • 165