Added: 1 year ago
From: JREAMdesign
Views: 3,701
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (17)

Sign In or Sign Up now to post a comment!
  • thanks for the great tutorial

  • 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!

  • 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 never mind, i got it working by adding toFixed() like this: total = total.toFixed(2);

    Thanks for the great tutorial :)

  • I love you made and posted on youtube..i really recommand to my frz :) thanks so much..

  • @satishbawage hahaha thanks :)

  • 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

  • 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 What IE version?

  • @JREAMdesign Im using IE8

  • Can you explain how you can force 2 decimals ? Thank You

  • @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()).t­oFixed(2); // Im not CERTAIN i have that all in the right order, but thats how ya do it.

  • 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 Thanks im glad :D

  • 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 ^^)

  • 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

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more