If you are talking about client side then use div tags and toggle visibity and innerHTML.
to hide a div- div11.innerHTML=''; div11.style.display = 'none'; to show a div- div11.style.display = ''; div11.innerHTML=detailsString; where detailString contains the content to show. If its is server side then logic:equal or c:if tags will work. --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "JUTTIGA PHANIDHAR" <[EMAIL PROTECTED]> > > Can anyone let me know how to display or hide a > table > > based on the choice of a radio button. > > Initially both the tables will be hidden and one > among > > them will be displayed on the click of a radio > button. > > With or without a form submit, or does it matter? > I'd make the form submit > when the radio button is clicked, then use <c:if> to > decide whether to show > sections of the page. But there must be a dozen > ways to do this, just > depends on what you prefer. > > For the HTML purists-- a set of radio buttons with > nothing pre-selected is > invalid HTML. So you ought to come in with a > default value, even if it's > "None of the above." > > -- > Wendy Smoak > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]