| | |
check box enable button
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
html Syntax (Toggle Plain Text)
<script type="text/javascript"> function enableButton() { if(document.getElementById('option').checked='checked'){ document.getElementById('b1').disabled=""; } else { document.getElementById('b1').disabled='disabled'; } } </script> <p style='text-align:center;'> <span style='float:right;text-align:right;'> <input type="checkbox" name="option" id="option" onclick="javascript:enableButton();"> <label for='option'> I have read and agree to the<br />terms and conditions </label> </span> <input type="button" name="b1" value="Click" id="b1" disabled='disabled' onclick="top.location.replace('http://www.google.com');" /> </p>
Last edited by almostbob; Sep 16th, 2009 at 9:37 am.
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
•
•
Join Date: Sep 2009
Posts: 6
Reputation:
Solved Threads: 0
Thanks guys for all the help. I was able to take cues from both of you to get what I wanted. I couldn't have done this without you.
To see it in action go to http://www.holiday-scooters.com/HSR/...hair_Info.html
Now for one last question. Is it possible to add a "BACK" button to the left of the "ORDER" button to serve as a browser back button? It would make my site look better.
<script type="text/javascript">
function enableButton() {
if(document.getElementById('option').checked){
document.getElementById('b1').disabled='';
} else {
document.getElementById('b1').disabled='true';
}
}
</script>
<font size=-1 face="Verdana">
<p style='text-align:center;'>
<span style='float:left;text-align:right;'>
<input type="checkbox" name="option" id="option" onclick="javascript:enableButton();">
<label for='option'>I have read and agree to the<br />
</label>
</span>
<center><a href="http://www.holiday-scooters.com/HSR/Reservations.html">Terms & Conditions</a><br />
<br>
<input type="button" name="b1" value="ORDER" id="b1" disabled='disabled' onclick="top.location.replace('http://www.holiday-scooters.com/HSR/Booking_Agent.html');" />
<br />
</font>
</p>
To see it in action go to http://www.holiday-scooters.com/HSR/...hair_Info.htmlNow for one last question. Is it possible to add a "BACK" button to the left of the "ORDER" button to serve as a browser back button? It would make my site look better.
<script type="text/javascript">
function enableButton() {
if(document.getElementById('option').checked){
document.getElementById('b1').disabled='';
} else {
document.getElementById('b1').disabled='true';
}
}
</script>
<font size=-1 face="Verdana">
<p style='text-align:center;'>
<span style='float:left;text-align:right;'>
<input type="checkbox" name="option" id="option" onclick="javascript:enableButton();">
<label for='option'>I have read and agree to the<br />
</label>
</span>
<center><a href="http://www.holiday-scooters.com/HSR/Reservations.html">Terms & Conditions</a><br />
<br>
<input type="button" name="b1" value="ORDER" id="b1" disabled='disabled' onclick="top.location.replace('http://www.holiday-scooters.com/HSR/Booking_Agent.html');" />
<br />
</font>
</p>
Last edited by Dasjetta; Sep 16th, 2009 at 8:53 pm.
html Syntax (Toggle Plain Text)
<input type='button' id='back' value='back' onclick='javascript: history.go(-1);' />
Last edited by almostbob; Sep 16th, 2009 at 11:10 pm.
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
•
•
Join Date: Sep 2009
Posts: 6
Reputation:
Solved Threads: 0
•
•
•
•
html Syntax (Toggle Plain Text)
<input type='button' id='back' value='back' onclick='javascript: history.go(-1);' />
![]() |
Similar Threads
- cannot find server or DNS error (Web Browsers)
- System 32 box showing up at startup (Viruses, Spyware and other Nasties)
- System 32 at startup and "dwn"/"down" pop up at startup (Viruses, Spyware and other Nasties)
- Hijack IE (Viruses, Spyware and other Nasties)
- startpage.4.ao browser hijacker / would like it out my system (Viruses, Spyware and other Nasties)
- weird virus, plz help? (Viruses, Spyware and other Nasties)
- Possibly caught an irc virus. (Viruses, Spyware and other Nasties)
- Manually Put Your Computer into Hibernation (Windows tips 'n' tweaks)
- Use Hibernate and Standby to Conserve Batteries (Windows tips 'n' tweaks)
- Set Accessibility Features for People Who are Blind or Who Have Low Vision in WinXP (Windows tips 'n' tweaks)
Other Threads in the PHP Forum
- Previous Thread: Need help
- Next Thread: Need Help in sending n receiving verification email
| Thread Tools | Search this Thread |
# .htaccess 5.2.10 ajax apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date display dissertation dynamic echo echo$_get[x]changingitintovariable... email error file files folder form forms function functions google href htaccess html image images include insert integration ip java javascript joomla ldap legislation limit link local login loop mail menu mlm mod_rewrite multiple mysql mysqlquery oop open paypal pdf persist php problem query radio random recursion regex remote script search server sessions sms soap sockets source space spam sql syntax system table tutorial update upload url validation validator variable video web xml youtube






