scroll to the bottom of a page
<p>The problem I am facing is that ,I have a set of questions in my survey . The first question asks the user to click on the check box if he is not a member . If the user selects the check box the cursor should automatically scroll to the bottom of the page skipping all the questions that comes after it . </p>

<p>I have tried different functions using jquery but none worked .
This is the code which I tried previously (P.S neither did this work) </p>

<pre><code>  &lt;?php
    if(!stristr($_SERVER['PHP_SELF'],"printSummary")) {
        require_once("../lib/include/common.inc.php");
    } else {
        require_once("../../lib/include/common.inc.php");
    }
    ob_start();

    $node_id = $parentnode?$parentnode:getDataFromSession("data,node_id");
    $node_name = get_node_name( $node_id,$_SESSION["survey"],$_SESSION['idLink']);
    $surveyForText = getText2("This survey is for:")." ".$node_name;

    if(strlen($node_name)&gt;0) {
        echo "&lt;script type='text/javascript'&gt;";
        echo "$(document).ready(function(){";
        echo "$('.generalErrorMsg').first().addClass('generalErrorMsgWithMargin').text(\"$surveyForText\");";
        echo "});";
        echo "&lt;/script&gt;";
    }
 //code that I am talking about starts here
    $currentPageNum = currentPageNumber();
    if($currentPageNum==4)
    {
        echo "&lt;script type=\"text/javascript\"&gt;
        $(document).ready(function(){
            $('input[type=checkbox]').click(function() {
                alert('here');
                setTimeout(function() { 
                    window.scrollTo(0, 1) },100);
            }); 


            //window.scrollBy(100,100); // horizontal and vertical scroll increments
            //scrolldelay = setTimeout('pageScroll()',80); // scrolls every 80 milliseconds
        });";
        echo "&lt;/script&gt;";
    }
    ?&gt;
</code></pre>

<p>Please help me with the resolution code. Thanks in advance
-Jathin</p>
