How to change rendered="false"> rendered="true" on JSF PAGE
<p>i'm developing a spring project. i'm using jsf java javascript and jquery. </p>

<p>but i have on problem. </p>

<p> t
if user check checkbox     </p>

<p>How can i this.</p>

<p>i tried this </p>

<pre><code>&lt;script type="text/javascript"&gt;
    function ozgur() {
        if(document.getElementById('fikirCheck').checked) {
            document.getElementById("secondPage").setAttribute("rendered",true);

        }else{
            document.getElementById("secondPage").setAttribute("rendered",false);
        }


    };
&lt;/script&gt;
</code></pre>

<p>checkbox boolean check box.</p>

<p>Thank you for help</p>