[thelist] Javascript Show/Hide DIV

James Newbery jamesnewbery at yahoo.co.uk
Mon Jun 24 10:52:01 CDT 2002

Ken, haven't tested this, but in your javascript
function you're using = for testing equivalence:

> function showhide() {
>   if (document.getElementById("mydiv").className =
> "divHide") {

should read

function showhide() {
    if (document.getElementById("mydiv").className ==
"divHide") {



Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts

More information about the thelist mailing list