Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adjusting a line
Message
 
 
À
10/01/2012 16:09:20
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01532690
Message ID:
01532691
Vues:
80
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform