[jQuery] Animated More Info.

2007-03-05 Thread JQuery - SimDigital
Take a look how i solve the problem:

script type=text/javascript src=jquery/jquery.js/script
script
$(.name).click(function(){
theParent = this.parentNode;
$(.moreinfo, theParent).animate({ height:'toggle'}, fast);
$(.moreinfo, theParent).load('moreinfo.html');
});
/script

div id=company-1 class=company
h2 class=nameSome Company/h2
p class=moreinfoSomething about the company/p
/div
div id=company-2 class=company
h2 class=nameOther Company/h2
p class=moreinfoSomething about the other company/p
/div



That is all folks ;-)


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Animated More Info.

2007-03-05 Thread Schnuck
do you have a demonstration site up?

On 05/03/07, JQuery - SimDigital [EMAIL PROTECTED] wrote:
 Take a look how i solve the problem:

 script type=text/javascript src=jquery/jquery.js/script
 script
 $(.name).click(function(){
 theParent = this.parentNode;
 $(.moreinfo, theParent).animate({ height:'toggle'}, fast);
 $(.moreinfo, theParent).load('moreinfo.html');
 });
 /script

 div id=company-1 class=company
 h2 class=nameSome Company/h2
 p class=moreinfoSomething about the company/p
 /div
 div id=company-2 class=company
 h2 class=nameOther Company/h2
 p class=moreinfoSomething about the other company/p
 /div



 That is all folks ;-)


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/