File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Expand and Collapse button: how to find the status of the button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Expand and Collapse button: how to find the status of the button" Watch "Expand and Collapse button: how to find the status of the button" New topic
Author

Expand and Collapse button: how to find the status of the button

Kuts Aryan
Greenhorn

Joined: Jun 27, 2009
Posts: 14
In my application a jsp page is there and when the jsp is getting loaded for the first time a j Query method is getting invoked and it is displaying the expand/collapse button.If I click on the expand button then it is displaying some message and changed to collapse and if I click on collapse the message is getting disappeared and the button itself is changed to expand again.
Please refer the attached image.

The jQuery code is given below
and in the jsp expand/collapse button display is like below


Now what I want is that using javaScript I want to programmatically make a decision that which button (expand or collapse) is hidden and which one is visible.
Please help me out



[Thumbnail for Picture 4.png]

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You know how to use ubb tags to do bold, in the future please use them on your code.

Eric
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
look at the display property



Eric
Kuts Aryan
Greenhorn

Joined: Jun 27, 2009
Posts: 14
Got the clue....

Special Thanks for immediate reply
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You are just lucky I check the ranch while brushing my teeth.

Eric
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Expand and Collapse button: how to find the status of the button