File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Show - Hide Functionality

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to hide and show a particular block of data.

I need to use the <div> inside an iterator. The functionality is working for the 1st row alone. For the other iterations, the sow-hide using div is not working.

Please help.


Thanks,
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just as in your other post, we can't help you if you don't give us the information needed. How can we possibly guess what's wrong?

Please read this for more information.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along. Please read this for more information.
 
Shiaber Shaam
Ranch Hand
Posts: 252
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The above is the part of my code. I want to display/hide a row using div and javascript. But, its working for 1st row of data alone.


Thanks,
 
Shiaber Shaam
Ranch Hand
Posts: 252
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



In this code, the div inside iterator is not working, means as id is constant, the first row alone is working. the other rows which are shown dynamically are not working. i want to assign the div ids dynamically and make some changes in javascript. i need help to do both of these.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ids in html are singular. You can ot have more than one element with the same id. So you need t increment your ids or find some other way to hide them.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic