LelloLello
asked on
My checkbox - input type="checkbox" name="intSave" value="55" disabled class="formWidget">
Please see attahced image registrationA and registrationB.
As you can see in RegistrationA.jpg my code is working fine but I don't know why when i choose optionB in RegistrationB my checkbock is not showing.
Could you please advise.
Thank you.
<li>
<label class="order">* Level A - after April 24, 2012 add $55</label>
<input type="checkbox" name="intSave" value="55" disabled class="formWidget">
<span class="details">+$55</span></li>
<li>
<label class="order">* Level B - after April 24, 2012 add $45</label>
<input type="checkbox" value="45" disabled class="formWidget">
<span class="details">+$45</span></li>
As you can see in RegistrationA.jpg my code is working fine but I don't know why when i choose optionB in RegistrationB my checkbock is not showing.
Could you please advise.
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This box should show.
When you select ( * ) B $1000 *
This checkbox should show.. Level B - after April 24, 2012 add $45 +$45
When you select ( * ) B $1000 *
This checkbox should show.. Level B - after April 24, 2012 add $45 +$45
ASKER
Did you understand my question?
ASKER
Here is my code
if (total == 0)
{
if (document.SubmitRegistration.intOption[i1].checked==true)
{
//if (((i1 == 0) || (i1 == 1) || (i1 == 3)) && (todaydate <= discountdate))
if (todaydate > discountdate){
if (i1 != 2 && i1 !=3 && i1!=4){
document.SubmitRegistration.intSave.checked = true;
}else{
document.SubmitRegistration.intSave.checked = false;
}
}else{
document.SubmitRegistration.intSave.checked = false;
}
total = document.SubmitRegistration.intOption[i1].value;
}
ASKER
I have to adjust the javascript if statment.
ASKER
i was able to fix level A, with that script how i can add another script if for level B?
if (document.SubmitRegistrati on.intOpti on[i1].che cked==true )
{
//if (((i1 == 0) || (i1 == 1) || (i1 == 3)) && (todaydate <= discountdate))
if (todaydate > discountdate){
if (i1 != 1 && i1 !=2 && i1 !=3 && i1!=4 && i1!=5){
document.SubmitRegistratio n.intSave. checked = true;
}else{
document.SubmitRegistratio n.intSave. checked = false;
}
}else{
document.SubmitRegistratio n.intSave. checked = false;
}
total = document.SubmitRegistratio n.intOptio n[i1].valu e;
}
if (document.SubmitRegistrati
{
//if (((i1 == 0) || (i1 == 1) || (i1 == 3)) && (todaydate <= discountdate))
if (todaydate > discountdate){
if (i1 != 1 && i1 !=2 && i1 !=3 && i1!=4 && i1!=5){
document.SubmitRegistratio
}else{
document.SubmitRegistratio
}
}else{
document.SubmitRegistratio
}
total = document.SubmitRegistratio
}
ASKER
When the user select Level B,
Level B after 24 Should show in the checkbox not level A.