View Full Version : boxes

08-13-2009, 06: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

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

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

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

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum