You are here: Re: show/hide <tr> with click « HTML « IT news, forums, messages
Re: show/hide <tr> with click

Posted by Gιrard Talbot on 04/08/07 03:07

J.O. Aho a Γ©crit :
> Martin Nadoll wrote:
>> hello,
>>
>> i have a table with about 20 rows coming from a mysql database.
>> in the database i have text with details for every row.
>> i dont want to show all these details, only my other information.
>>
>> so, what i want to do is to make a textlink into every row "show details".
>> this details should appear in the next <tr> after the row i cklicked and all
>> following information should go down.
>> in the details-row i want to have a textlink "hide details" so that
>> everything looks like before.
>
> You may use a hidden div

A hidden div within a table imply invalid markup code.

> that you turn to a visible with a link, here is an
> example that uses form buttons to show/hide, but you can use onClick on a
> anchor instead.
>
> http://www.rgagnon.com/jsdetails/js-0086.html

The example is pretty old, not adjusted to the OP description.

GΓ©rard
--
Using Web Standards in your Web Pages (Updated Dec. 2006)
http://developer.mozilla.org/en/docs/Using_Web_Standards_in_your_Web_Pages

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация