disclaimer box

I'm looking for a script that will display a box with a disclaimer, and a check box that will enable an okay button. This will be run from an .aspx page.

Cheers,
brendan
brendanlefavreAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
leakim971Connect With a Mentor PluritechnicianCommented:
0
 
WilliamStamCommented:
if you dont come right let me know... will rush something up.

im thinking... a div positioned ontop of the rest of the pages content... fixed.. so it scrolls with scrolling.. then a

<input type="button" disabled="disabled" id="accept" value="ok" /> // yeah i know the button is correct but you get the idea

add a checkbox

$("#checkbox").click(function(){
 if ($(this).is(":checked")){
  $("#accept").attr("disabled","");
 } else {
  $("#accept").attr("disabled","disabled");
 }
});

so basicaly if you click on the checkbox and its checked it will enable the button.. if not then it disables it.
0
 
brendanlefavreAuthor Commented:
The dialog works, and is fairly straight forward to implement. One question, what would be the best way to implement a check to see if the user has accepted the agreement during the current session?

Cheers,
Brendan
0
 
brendanlefavreAuthor Commented:
easy to implement, and it works
0
 
leakim971PluritechnicianCommented:
Thanks for the points!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.