File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kuts Aryan
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Picture 4.png
Image of the button
[Thumbnail for Picture 4.png]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You know how to use ubb tags to do bold, in the future please use them on your code.

Eric
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look at the display property



Eric
 
Kuts Aryan
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got the clue....

Special Thanks for immediate reply
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are just lucky I check the ranch while brushing my teeth.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic