Click here to Skip to main content
15,916,463 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm beginner in the web, I will test if a checkbox is checked or not checked if it is I will post a template if not another template, which will be dynamic, If I uncheck switche to another template (I have two template)
Like this:

<input type="checkbox" name="CHECKBOX_1" value="1" id="1" checked="checked"/>;     
        if(...){
            template_2  
        }
        else(...)
        {
            template_1   
        }



how can i do this?

I am sorry for my bad english

thanks,
Posted
Updated 20-Jun-12 10:22am
v5
Comments
Prosan 21-Jun-12 1:04am    
by js or code behind.

1 solution

you can check value of checkbox
checkbox.value=true then doc1 else doc2
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900