I have defined the checkbox as follows in my form:
<tr align="left">
<th width="15%" align="right">Int'l Ind</th>
<td>
<input type="checkbox" name="intl_ind" id="intl_ind">
</td>
</tr>
In my javascript, I am doing as follows:
var ind=customerInfo[ind].intl_ind;
if (ind == '1')
{
document.customeraddform.intl_ind.checked = TRUE;
}
/*if intl_ind is 0, then the checkbox for intl_ind should be unchecked*/
if (ind == '0')
{
document.customeraddform.intl_ind.checked = FALSE;
}
Howeverm, this setting TRUE and FALSE does not seem to be working.
Please let me know what am I doing wrong here. Thanks.
<tr align="left">
<th width="15%" align="right">Int'l Ind</th>
<td>
<input type="checkbox" name="intl_ind" id="intl_ind">
</td>
</tr>
In my javascript, I am doing as follows:
var ind=customerInfo[ind].intl_ind;
if (ind == '1')
{
document.customeraddform.intl_ind.checked = TRUE;
}
/*if intl_ind is 0, then the checkbox for intl_ind should be unchecked*/
if (ind == '0')
{
document.customeraddform.intl_ind.checked = FALSE;
}
Howeverm, this setting TRUE and FALSE does not seem to be working.
Please let me know what am I doing wrong here. Thanks.