Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 17:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Help with a js/jquery calculator

Discussion on Help with a js/jquery calculator within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 90
Join Date: Dec 2014
Posts: 176
Received Thanks: 6
Help with a js/jquery calculator

Currently i have a calculator that calculate on bronze - silver - gold - platinum - diamond but i need to to calculate on 1-2-3-4-5 aswell! How can i do that? Fx. bronze - silver now it says 10€ but it should be 50€ becuase it need to add 10€ for each number you select in the number section (5 is lowers and 1 is highest).

Any1 that can help me with this?
Code:

Have worked on it for 2 days now and i just can't breake it... It's frustrate meh Hope som1 can give me the answere
rasmusfisk is offline  
Old 10/25/2015, 15:19   #2
 
elite*gold: 0
Join Date: Jun 2009
Posts: 593
Received Thanks: 109
You could check for start and end division -> if they're not the same you can iterate from the selected value until 1 e.g. if you select bronze 4 you need 4 divisions to pay ->for(var i =0; i<= 4;i++) ... add 10€ ... thats not really much but maybe it helps you, otherways just write me a pn
sven12345 is offline  
Old 10/25/2015, 16:08   #3
 
elite*gold: 90
Join Date: Dec 2014
Posts: 176
Received Thanks: 6
Quote:
Originally Posted by sven12345 View Post
You could check for start and end division -> if they're not the same you can iterate from the selected value until 1 e.g. if you select bronze 4 you need 4 divisions to pay ->for(var i =0; i<= 4;i++) ... add 10€ ... thats not really much but maybe it helps you, otherways just write me a pn
Wrote you a message
rasmusfisk is offline  
Reply


Similar Threads Similar Threads
[jQuery] Simple jQuery-Plugin Template
01/21/2014 - Coding Snippets - 0 Replies
Ohne Parameter: Der Code selbst: (function( $ ) { $.fn.popupContent = function() { //Funtions-Block alert($( this ).text()); }; }( jQuery ));
[S] Autocomplete jQuery
01/21/2014 - Coders Trading - 10 Replies
Hey! Ich suche ein fertiges jQuery Script (Autocomplete) wie bei Facebook. Also das man zb die ersten zwei Buchstaben eines Freundes eingibt, das dieser dann erscheint. Ich hätte gern ein fertiges Script, da ich es leider nicht schaffe es selbst aufzubaun. Ich bräuchte das Script + anbindung an eine Datenbank..Falls mir jemand sowas zukommen lassen kann, wäre ich bereit 5€ PayPal zu bezahlen. Bitte helft mir!
jQuery Frage
10/20/2013 - Web Development - 2 Replies
Könnte mir jemand ein fertigen Code geben womit man eine Faq wie die von PietSmiet machen könnte? http://www.pietsmiet.de/fragen-und-antworten Grüße
jQuery Problem?!
09/08/2012 - Web Development - 4 Replies
Hallo, also ich möchte nun ein bisschen jQuery ausprobieren. Mit Firebug funktioniert alles hervorragend. Nun möchte ich das in eine .js Datei schreiben. Bloss es wird nicht ausgeführt. Erstmal habe ich jQuery richtig eingebunden: <script src="http://code.jquery.com/jquery-1.8.1.min. js"></script> Und die .js Datei habe ich folgend eingefügt:
Age of Conan Feat Calculator - AoC Feat Calculator
06/13/2010 - General Gaming Releases - 3 Replies
the most accurate Age of Conan Feat Calculator



All times are GMT +1. The time now is 17:12.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.