...

View Full Version : boxes



moiseszaragoza
08-13-2009, 07:05 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



function getPrice(boxName){

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





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



Thanks for all the help

ohgod
08-13-2009, 08:23 PM
id="<%= boxName %>>"

you have 2 >'s. it's borking your id.

moiseszaragoza
08-13-2009, 08:42 PM
Thanks
that was the problem



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum