NaniG Posted September 20, 2012 Share Posted September 20, 2012 Hi to all, I have a PHP page with Terms and Condition where the content is feteched from MySQL database table and am showing these content into a textarea box. Below that i have a check box and a submit button. by default the submit button is in disable mode. When end user checks the check box then the submit button is in activate mode and the end user can able to click on the submit button. These is fine with me. Now my query is "Is it possible to the end user should be prompted to read the terms and condition completely and then to checks checkbox after that the submit button should be in active mode?" Please Help me out from these issue. Thanks and Regards, Quote Link to comment https://forums.phpfreaks.com/topic/268592-terms-and-condition-and-hide-submit-button/ Share on other sites More sharing options...
gizmola Posted September 20, 2012 Share Posted September 20, 2012 Yes, there's a nice jsfiddle here that demonstrates how to do this with jquery. The differences in approach would be: -You would use a size constrained Div instead of a text area. -"Reading completely" is considered to have happened when the user scrolls the scrollbar to the bottom of the T&C. Using this technique you can combine your activation of the checkbox with the scrolling to the bottom of the T&C. Quote Link to comment https://forums.phpfreaks.com/topic/268592-terms-and-condition-and-hide-submit-button/#findComment-1379500 Share on other sites More sharing options...
NaniG Posted September 20, 2012 Author Share Posted September 20, 2012 Thanks Gizmola, My problem has been solved.... Many more thanks.... Quote Link to comment https://forums.phpfreaks.com/topic/268592-terms-and-condition-and-hide-submit-button/#findComment-1379524 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.