[NFB-Web] java script code

Bryan Schulz b.schulz at sbcglobal.net
Mon Jan 31 20:41:37 UTC 2022


hi,

 

I am trying to change the appearance of a php page with java scrip/hide a
div area 

(please don't reply with jQuery).

I have this code in the header area:

 

function showPhoneBoxes() {

                if (document.getElementById('chkUnlisted').checked) {

 
document.getElementById('phoneBoxes').style.display = 'none';

                } else {

 
document.getElementById('phoneBoxes').style.display = 'block';

                } //end document.getElementById if

} //end showPhoneBoxes function

 

html:

a checkbox with my phone number is unlisted

 

<div id="showPhoneBoxes">

html here

</div>

 

what am I missing?

i want the edit strips for the phone number to be hidden when the user
checks the unlisted checkbox.

thanks,

Bryan

 

 



-- 
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nfbnet.org/pipermail/nfb-web_nfbnet.org/attachments/20220131/2c6d1d63/attachment.html>


More information about the NFB-Web mailing list