|
Posted by Ed Jay on 11/21/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> 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)
Navigation:
[Reply to this message]
|