I have the effect that if I uncheck all my boxes the value of the checkbox unchecked last will stay as the total value. The total doesn't get resetted back to 0. jquery version 1.6.2. thanks for any hint!
I added ".option:selected" after ".option:checked" and now IE will calculate it but will only make the addition or subtraction after a checkbox is checked or unchecked. For example, if I select $30 from one of the list menus nothing will happen, but once a click a checkbox it will add the value of the checkbox AND the $30 value from the list menu that is selected. Im starting to think that IE doesnt support jquery list menu or something....at least not IE8
@dyechad Use regular javascript. toFixed(2). So you first need an integer (wherever you get it from), and you'd be like... var x = parseInt($('#price').html()).toFixed(2); // Im not CERTAIN i have that all in the right order, but thats how ya do it.
Hello, can i ask how to make a jquery loader?I know you had made on tutorial 12, but what i want is just like if you see facebook, when you register it will appear a loading symbol for 1 or 2 second, then it appear the message if you have anything
thanks for the great tutorial
smiku123 2 months ago
Comment removed
echelon089 6 months ago
Thanks for this great tutorial.
I have the effect that if I uncheck all my boxes the value of the checkbox unchecked last will stay as the total value. The total doesn't get resetted back to 0. jquery version 1.6.2. thanks for any hint!
echelon089 6 months ago
My price had decimals like $12.99 so i used parseFloat instead of parseInt like this: total += parseFloat($(this).val());
How can i trim the total to two decimals? as right now if you add three items, it shows the price like $38.97999999
classna 7 months ago
@classna never mind, i got it working by adding toFixed() like this: total = total.toFixed(2);
Thanks for the great tutorial :)
classna 7 months ago
I love you made and posted on youtube..i really recommand to my frz :) thanks so much..
satishbawage 9 months ago
@satishbawage hahaha thanks :)
JREAMdesign 9 months ago
I added ".option:selected" after ".option:checked" and now IE will calculate it but will only make the addition or subtraction after a checkbox is checked or unchecked. For example, if I select $30 from one of the list menus nothing will happen, but once a click a checkbox it will add the value of the checkbox AND the $30 value from the list menu that is selected. Im starting to think that IE doesnt support jquery list menu or something....at least not IE8
tbriar1982 10 months ago
Hi I added a list menu to the html in addition to the checkbox in my html. It works fine adding the value in FF, but does not work in IE...any ideas?
tbriar1982 10 months ago
@tbriar1982 What IE version?
JREAMdesign 10 months ago
@JREAMdesign Im using IE8
tbriar1982 10 months ago
Can you explain how you can force 2 decimals ? Thank You
dyechad 11 months ago
@dyechad Use regular javascript. toFixed(2). So you first need an integer (wherever you get it from), and you'd be like... var x = parseInt($('#price').html()).toFixed(2); // Im not CERTAIN i have that all in the right order, but thats how ya do it.
JREAMdesign 11 months ago
Thank you so much! This was exactly what I was looking for. Very straight forward tutorial, easy to follow. Perfect! Keep up the great work :)
sirchadlington 1 year ago
@sirchadlington Thanks im glad :D
JREAMdesign 1 year ago
Can you explain in another Tutorial how I write an uploader with PHP and JavaScript(Ajax) with progressbar?
Please you can so good explain =)
(sorry for my bad englisch ^^)
Venistro 1 year ago
Hello, can i ask how to make a jquery loader?I know you had made on tutorial 12, but what i want is just like if you see facebook, when you register it will appear a loading symbol for 1 or 2 second, then it appear the message if you have anything
error.Can you make a tutorial on that?Thanks
himankerable 1 year ago