-
I need Help! I need a simple calculator for my website!
Hey Wynn! I had to change a few things but I got it to WORK!!! Now I'd like to ask another question. If I left the code the original way and the customer chose from the different options then the total would appear in the box. Now they chose from the dropdown option to add the percentage. Can that total(the one from the original total box + the percentage) appear in a separate box? So that they can see both totals and compare?
-
I need Help! I need a simple calculator for my website!
Okay, So I'm having trouble. Where exactly do I add the above into this: <html> <body> <div id ="calculator"> <p>Option 1 <select class="option"> <option value="0"> 0 </option> <option value="10"> 1 </option> <option value="20"> 2 </option> <option value="30"> 3 </option> <option value="40"> 4 </option> <option value="50"> 5 </option> </select></p> <p>Option 2 <select class="option"> <option value="0"> 0 </option> <option value="10"> 1 </option> <option value="20"> 2 </option> <option value="30"> 3 </option> <option value="40"> 4 </option> <option value="50"> 5 </option> </select></p> <p>Option 3 <input type="text" class="option" > </p> <p>Option 4 <input type="text" class="option" > <p>Option 5 (+ 25) <input type="checkbox" value="25" class="chk-option" /> </p> <p>Option 6 (+ 50) <input type="checkbox" value="50" class="chk-option" /> </p> <p>Option 7 (+ 75) <input type="checkbox" value="75" class="chk-option" /> </p> <p>Total: <span id="total"> 0 </span></p> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script> $('#calculator input[type=text]').val(0); // Reset checkboxes $('#calculator input').prop('checked',false) // text and select $('#calculator select').prop('selectedIndex',0); // on reload, delete if not needed $(function() { $('#calculator input , #calculator select').on('change', function() { var total = 0; $('.option , .chk-option:checked').each(function(){ total += parseInt(eval($(this).val())); }); $('#total').text(total); }); }); </script> </body> </html>
-
jimmymustang reacted to a post in a topic:
25 Post limit removed for new members + New WrordPress forum
-
I need Help! I need a simple calculator for my website!
Hey Wynn, I have a question for you on this topic. Is it possible that there could be a dropdown menu that once an option is selected, it could increase the total by a certain percentage? For example: Option A no increase Option B 5% increase Option C 10% increase Option D 20% increase Thanks for your infinite wisdom! Jimmy
-
Duan_D reacted to a post in a topic:
Please help my to add a calculator to my website - pretty please!
-
Please help my to add a calculator to my website - pretty please!
Here is a link to what helped me: http://www.webdesignerforum.co.uk/topic/69247-i-need-help-i-need-a-simple-calculator-for-my-website/
-
Date Time Picker
NEVERMIND! I finally figured it out!!!
-
Date Time Picker
Here's the one I've been trying to use: http://jqueryui.com/datepicker/ If I copy and paste the following into a blank document in dreamweaver it works fine. the minute I add it into the page I'm working on, Nothing. I have left off the <head> tags and the <body> tags and put the script into the corresponding places but still, it wont work? <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>jQuery UI Datepicker - Default functionality</title> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> <link rel="stylesheet" href="/resources/demos/style.css" /> <script> $(function() { $( "#datepicker" ).datepicker(); }); </script> </head> <body> <p>Date: <input type="text" id="datepicker" /></p> </body> </html>
-
Date Time Picker
It seems to be what I'm looking for but I haven't got a clue as to how to make it work!
-
Date Time Picker
Can anybody tell me the best way to add a Date Time Picker to my form? I'm using dreamweaver cs6. THANKS!
-
Please help my to add a calculator to my website - pretty please!
I was originally trying to get in touch with you! It was your post that I found in a google search that led me to this forum. I wasn't able to contact anyone directly at first because of the "25 Posts" rule but all the nice folks here have been extremely helpful. I'm working on a "estimate form" for my wife's website, I hope you wont mind if I hit you up for info soon.
-
Best way to email website form
So i've begun creating an estimate form for my wife's website. Many thanks again to those who have helped. Now here's my next question, what is the best way to make it so that that once the customer fills in all the info they can hit a "submit" button and all the info from the form gets delivered to her email? Thanks in advance, Jimmy
-
-
Thank You WDF members!
Thanks to WDF members Lyndsey, CSN-UK and Wynn the page I was struggling with will be up and running in no time! Deepest Gratitude!
-
I need Help! I need a simple calculator for my website!
Hey Wynn! I just got home and plugged this into dreamweaver, I can't begin to thank you for all you're help! It WORKS!!!!!!!!!!!!!!!!!! Thank you, Thank you, Thank you!!!
-
-
-
-
Thank You WDF members!
I just want to say thanks to everybody on WDF!!! Everyone here has been so nice and helpful with all of my newbie questions! Jimmy
-
I need Help! I need a simple calculator for my website!
I just found it and made a post! Thanks Wynn!!!!!! Can you help me with the checkboxes? P L E A S E
-
I need Help! I need a simple calculator for my website!
Okay, Sorry for all the posts, I'm learning. I've been staring at the html so long I can't see straight. So problem solved on the drop downs. Thanks to CSN-UK and Wynn!!! I had <option value="0"> 0 </option> set with no "0" in it so all drop down had to be selected to get a total. Now on to adding more check boxes. Can you PLEASE help with that also?!?!?!?!