Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Require Checkbox for Submit Button
- ## put this in head area
- <script type="text/javascript">
- <!--
- window.onload=function() {
- df=document.forms[0];
- df[1].disabled=true;
- df[0].onclick=function(){
- df[1].disabled=(df[1].disabled)?false:true;
- }
- }
- //-->
- </script>
- ## put this in body area
- <form action="#">
- <div>
- <input type="checkbox"/>
- <input type="submit" value="Submit Application" class="button"/>
- </div>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement