| Author |
Enabling a check box based on the position of scroll bar in a text area..
|
Supreet Malaviya
Greenhorn
Joined: Feb 07, 2008
Posts: 5
|
|
Hi,
I don't have much idea about javascript...
In one of my recent project requirements for a Web Application, I have to enable a check box based on whether a user has scrolled till end in the agreement text.
The agreement text is present in a textarea and the checkbox (by checking on which, the user agrees to the terms and conditions mentioned in the text area) is present outside the text area. The user should be able to check the checkbox only when he/she has scrolled till the end in the textarea.
Anyone has any idea as to how this thing can be done using javascript?
Thanks,
Supreet Malaviya.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
onscroll and scrollTop is probably what you are after.
Eric
|
 |
Supreet Malaviya
Greenhorn
Joined: Feb 07, 2008
Posts: 5
|
|
Thanks for your reply Eric....
Supreet Malaviya
|
 |
 |
I agree. Here's the link: jrebel
|
|
subject: Enabling a check box based on the position of scroll bar in a text area..
|
|
|