Advertisement

04.23.2008 at 02:58PM PDT, ID: 23348512
[x]
Attachment Details

Does JavaScript support boolean assignment?

Asked by ttitus in Dynamic HTML (DHTML), JavaScript

Tags: JavaScript, IE

Does JavaScript support boolean assignments like C/C++?

DevGeneralTab.className = (IDName == 'general') ? "EXPANDED" : "COLLAPSED";

Should this work?Start Free Trial
1:
DevGeneralTab.className = (IDName == 'general') ? "EXPANDED" : "COLLAPSED";
 
Loading Advertisement...
 
[+][-]04.23.2008 at 03:51PM PDT, ID: 21426287

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.23.2008 at 03:54PM PDT, ID: 21426315

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Dynamic HTML (DHTML), JavaScript
Tags: JavaScript, IE
Sign Up Now!
Solution Provided By: GreenGhost
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.23.2008 at 03:55PM PDT, ID: 21426323

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628