|
Posted by Jonathan N. Little on 01/20/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> 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]
|