Reply to Re: Making check boxes active on selection of radio button...

Your name:

Reply:


Posted by Ed Jay on 01/20/14 11:36

"Jonathan N. Little" <lws4art@centralva.net> wrote:

>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>

I don't think you went far enough in my code...

Left:<input type=checkbox name=symp_brl value=1
onClick="toggle(this,'div2l');clearSympLeft();hide('div3l');clearSymp();"></div>
----------------^
<div class=yes_no_right style="float:left;">
Right:<input type=checkbox name=symp_brr value=1
onClick="toggle(this,'div2r')
^
>
>but your function is 'clearBut':
>
>function clearBut(suffix,count) {
>var i=0;
>while (i < count) {
>window.document.form1.elements[suffix+(i)].checked=false;
>i++;}

clearBut(suffix,count) is a function to clear all buttons.

--
Ed Jay (remove M to respond by email)

[Back to original 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

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