Select div based on radiobutton


I had a problem about the javascript thing

How I can select div based on radiobutton selection. I had 3 div with id tag. I renamed it all with sub1, sub2, sub3. I want to make it sub1 as a default .

just javascript

not too complicated

could you explain your request, I don’t get it.

Could you expand on what you’re doing; I can’t quite figure it out from your description. You want to select from three different div’s based on the state of a radio button? What do you mean by select the div; what are you trying to accomplish?

Are you using jQuery or prototype, or just javascript?