Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adjusting a line
Message
 
 
To
10/01/2012 16:09:20
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01532690
Message ID:
01532691
Views:
81
This message has been marked as the solution to the initial question of the thread.
>If I have this line:
>
>
>el.style.visibility=(el.style.visibility=="visible") ? "hidden" : "visible"
>
>
>How can I make it more easy to understand such as splitting it into a normal IF condition?

What is the problem?
if (el.style.visibility == "visible)
   el.style.visibility = "hidden"
else
  el.style.visibility = "visible"
Not tested, but looks OK to me.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform