You are here: Re: Making check boxes active on selection of radio button... « HTML « IT news, forums, messages
Re: Making check boxes active on selection of radio button...

Posted by Jonathan N. Little on 11/21/47 11:36

Ed Jay wrote:

> Mark <mark@spam-me-senseless.com> wrote:
>
>
>>Hi Ed
>>
>>This was the KILLER response I was looking for!!!
>>
>>Thanks for this my man! This will sort me right out :o)
>>
>>Thanks to everyone else for their responses too...
>>
>
> Here are the js:
>
> function show(cont_id) {
> target = document.getElementById(cont_id)
> target.style.display = "";
> }
>
> function hide(cont_id) {
> target = document.getElementById(cont_id)
> target.style.display = "none";
> }
>
> function toggle(what,targetId) {
> target = document.getElementById(targetId);
> target.style.display = (what.checked)?'':'none';
> }
>
Just a note Ed you got a little error in your code,

<your code>

<b>Was patient prepared for examination consistent with recommended
protocol?</b>&nbsp;&nbsp;Yes<input type=radio name="cbt" value="0"
onClick = "hide('div4');clearButs('proto',4);clearProto();" checked>

</your code>

but your function is 'clearBut':

function clearBut(suffix,count) {
var i=0;
while (i < count) {
window.document.form1.elements[suffix+(i)].checked=false;
i++;}



--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация