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

Posted by J.O. Aho on 04/07/07 09:34

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 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


--

//Aho

 

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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация