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

boxes

boxes

Postby moiseszaragoza on Thu Aug 13, 2009 5:07 pm

Hey I am trying to know what is the value of of a check box (true, or false)

but i cant seem to get it write


Code: Select all
function getPrice(boxName){

   alert(form1.Soft_Top_Cloth.checked) // Hard code box name it works
   alert(form1.boxName.checked) // passed threw variable not working
}





Code: Select all
<input type="checkbox" name="<%= boxName %>" id="<%= boxName %>>" onchange="getPrice('<%= boxName %>')" />



Thanks for all the help
moiseszaragoza
 
Posts: 5
Joined: Wed Mar 14, 2007 4:58 pm

Who is online

Users browsing this forum: No registered users and 5 guests