Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
JS function stopped firing
Message
From
18/10/2014 02:04:11
 
 
To
18/10/2014 01:39:48
General information
Forum:
Javascript
Category:
Troubleshooting
Miscellaneous
Thread ID:
01609609
Message ID:
01609610
Views:
41
>I created a simple (I thought) javascript function that would allow a DIV block of collapse and expand. It worked once, but as I simplified it more, it stopped working. I have staring at the code for hours, but can not see why it fails.
>
>-- See attachment --
>
>Can anyone see where I messed up?
You were making a assignment with the if. Should be:
if (oHeader.style.display === 'block') {
}
FWIW, if you're doing a lot of this type of DOM manipulation take a look at angular....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform