<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>This is just off the cuff, as I haven’t programmed in about a year and a half.</div><div><br></div><div>But in your get element by ID statement, you’re calling it “phone boxes“, but it looks like your div ID is “show phone boxes“.</div><div><br></div><div>Also a note, don’t know if this is a real consequence or not: they say that the get element by ID statement is not section 508 compliant. I had this in a training class once. I think it has to do with how it registers the speech. Just a thought, but not related</div><div><br></div><div>Hope this helps even a little bit.</div><div><br></div><div>Marcus</div><div><br><div dir="ltr">Sent from my iPhone</div><div dir="ltr"><br><blockquote type="cite">On Jan 31, 2022, at 7:29 PM, Phil Seif via NFB-Web <nfb-web@nfbnet.org> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div class="ydpc773f380yahoo-style-wrap" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"><div></div>
        <div dir="ltr" data-setdir="false">Hi.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I'm don't code a lot of JS, but I don't think you need a header function for this.  You might be able to us this inside your div instead:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div dir="ltr" data-setdir="false"><div><div><button type="button"</div><div dir="ltr" data-setdir="false">onclick="document.getElementById('showPhoneBoxes').style.display = 'none'"></div><div>My phone number is unlisted</button></div></div><div><br></div><div><br></div><div dir="ltr" data-setdir="false">Phil</div><div dir="ltr" data-setdir="false"><br></div><br></div><br></div><div><br></div>
        
        </div><div id="ydp1cb95c04yahoo_quoted_4527261951" class="ydp1cb95c04yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Monday, January 31, 2022, 03:43:24 PM EST, Bryan Schulz via NFB-Web <nfb-web@nfbnet.org> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="ydp1cb95c04yiv7594579114"><div><div class="ydp1cb95c04yiv7594579114WordSection1"><p class="ydp1cb95c04yiv7594579114MsoNormal">hi,</p><p class="ydp1cb95c04yiv7594579114MsoNormal">  </p><p class="ydp1cb95c04yiv7594579114MsoNormal">I am trying to change the appearance of a php page with java scrip/hide a div area </p><p class="ydp1cb95c04yiv7594579114MsoNormal">(please don't reply with jQuery).</p><p class="ydp1cb95c04yiv7594579114MsoNormal">I have this code in the header area:</p><p class="ydp1cb95c04yiv7594579114MsoNormal">  </p><p class="ydp1cb95c04yiv7594579114MsoNormal">function showPhoneBoxes() {</p><p class="ydp1cb95c04yiv7594579114MsoNormal">                if (document.getElementById('chkUnlisted').checked) {</p><p class="ydp1cb95c04yiv7594579114MsoNormal">                                document.getElementById('phoneBoxes').style.display = 'none';</p><p class="ydp1cb95c04yiv7594579114MsoNormal">                } else {</p><p class="ydp1cb95c04yiv7594579114MsoNormal">                                document.getElementById('phoneBoxes').style.display = 'block';</p><p class="ydp1cb95c04yiv7594579114MsoNormal">                } //end document.getElementById if</p><p class="ydp1cb95c04yiv7594579114MsoNormal">} //end showPhoneBoxes function</p><p class="ydp1cb95c04yiv7594579114MsoNormal">  </p><p class="ydp1cb95c04yiv7594579114MsoNormal">html:</p><p class="ydp1cb95c04yiv7594579114MsoNormal">a checkbox with my phone number is unlisted</p><p class="ydp1cb95c04yiv7594579114MsoNormal">  </p><p class="ydp1cb95c04yiv7594579114MsoNormal"><div id="showPhoneBoxes"></p><p class="ydp1cb95c04yiv7594579114MsoNormal">html here</p><p class="ydp1cb95c04yiv7594579114MsoNormal"></div></p><p class="ydp1cb95c04yiv7594579114MsoNormal">  </p><p class="ydp1cb95c04yiv7594579114MsoNormal">what am I missing?</p><p class="ydp1cb95c04yiv7594579114MsoNormal">i want the edit strips for the phone number to be hidden when the user checks the unlisted checkbox.</p><p class="ydp1cb95c04yiv7594579114MsoNormal">thanks,</p><p class="ydp1cb95c04yiv7594579114MsoNormal">Bryan</p><p class="ydp1cb95c04yiv7594579114MsoNormal">  </p><p class="ydp1cb95c04yiv7594579114MsoNormal">  </p></div><div id="ydp1cb95c04yiv7594579114DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #D3D4DE;">
        <tbody><tr>
        <td style="width:55px;padding-top:13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon" target="_blank" rel="noreferrer noopener"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width:46px;min-height:29px;" data-inlineimagemanipulating="true" data-unique-identifier=""></a></td>
                <td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial, Helvetica, sans-serif;line-height:18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link" style="color:#4453ea;" target="_blank" rel="noreferrer noopener">www.avast.com</a>
                </td>
        </tr>
</tbody></table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" target="_blank" rel="noreferrer noopener"> </a></div></div></div>_______________________________________________<br>NFB-Web mailing list<br><a href="mailto:NFB-Web@nfbnet.org" target="_blank" rel="noreferrer noopener">NFB-Web@nfbnet.org</a><br><a href="http://nfbnet.org/mailman/listinfo/nfb-web_nfbnet.org" target="_blank" rel="noreferrer noopener">http://nfbnet.org/mailman/listinfo/nfb-web_nfbnet.org</a><br>To unsubscribe, change your list options or get your account info for NFB-Web:<br><a href="http://nfbnet.org/mailman/options/nfb-web_nfbnet.org/pseif%40yahoo.com" target="_blank" rel="noreferrer noopener">http://nfbnet.org/mailman/options/nfb-web_nfbnet.org/pseif%40yahoo.com</a><br></div>
            </div>
        </div><span>_______________________________________________</span><br><span>NFB-Web mailing list</span><br><span>NFB-Web@nfbnet.org</span><br><span>http://nfbnet.org/mailman/listinfo/nfb-web_nfbnet.org</span><br><span>To unsubscribe, change your list options or get your account info for NFB-Web:</span><br><span>http://nfbnet.org/mailman/options/nfb-web_nfbnet.org/msoulsby%40nfbwv.org</span><br></div></blockquote></div></body></html>