visible and hidden on table row and table data

i have looked at a similar answer in the EE.
I am using php to generate the html, but have included only the html
I am also using Javascript to show/hide the table for.
Basically if the checkbox is clicked the table row and it's td's become visible

Should i look at learning how to us getElementById of can i stick to the current track?

Here's a view of what i am working on...

<html>
<head>
<script type='text/javascript'>
function BeVisible()
{
  document.irbform.Qfive.style.visibility='visible';
}
</script>
</head>
<body>
<!-- input is checkbox button -->
<form name='theForm'id='theForm'>
<input id='riderz' type='checkbox' name='riderz' value='other'  onClick=BeVisible()>&nbsp;7.&nbsp;Other - please specify<br />

<table>
<tr name='Qfive' id='Qfive' style='visibility:hidden;'>
<td>7.&nbsp;Other - please specify</td>
<td><input id='other' type='radio' name='other' value='suitable'  checked></td>
<td><input id='other' type='radio' name='other' value='inadequate' ></td>
<td><input id='other' type='radio' name='other' value='tooMuch' ></td>
</tr>
</table>
</form>

ianDunqAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sajuksCommented:
//check this. and yes use getElementById for crossbrowser compatibilty
<html>
<head>
<script type='text/javascript'>



function BeVisible()
{
var elem = document.getElementById("Qfive");
elem.style.display = (elem.style.display == "none")?"":"none";

}
</script>
</head>
<body>
<!-- input is checkbox button -->
<form name='theForm'id='theForm'>
<input id='riderz' type='checkbox' name='riderz' value='other'  onClick=BeVisible()>&nbsp;7.&nbsp;Other - please specify<br />

<table>
<tr id='Qfive' style='display:none;'>
<td >7.&nbsp;Other - please specify</td>
<td ><input id='other' type='radio' name='other' value='suitable'  checked></td>
<td ><input id='other' type='radio' name='other' value='inadequate' ></td>
<td ><input id='other' type='radio' name='other' value='tooMuch' ></td>
</tr>
</table>
</form>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ianDunqAuthor Commented:
Yep that does the trick. Cheers.
0
sajuksCommented:
Thanks for the points and grade
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.