It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

checkboxes FF

checkboxes FF

Postby moiseszaragoza on Thu Aug 27, 2009 3:37 pm

have a simple calculator i made with checkboxes and some Js.

the problem is that it does not work in FF.

any idea how this can work for
IE
Safari
AND FF


Code: Select all

function getPrice(amount, boxName){
      total = eval() ;
   
      checked = document.getElementById(boxName).checked
         if (checked){
            total =  parseFloat(form1.Total2.value) + parseFloat(amount);

         }else{
            total =  parseFloat(form1.Total2.value) - parseFloat(amount);

         }
         total.toFixed(2);
      form1.Total2.value = total
      document.getElementById("total").innerHTML = "Total $"+total;
   }

moiseszaragoza
 
Posts: 5
Joined: Wed Mar 14, 2007 4:58 pm

Who is online

Users browsing this forum: Google [Bot] and 5 guests