Check out this tutorial:
http://www.learningjquery.com/2007/02/more-showing-more-hiding


Eugene Louw wrote:
> 
> yes, that is exactly what I want to achieve.
> 
> On 2/23/07, Yansky <[EMAIL PROTECTED]> wrote:
>>
>>
>> What effect are you trying to acheive? Do you want the first div to be
>> shown
>> and the second div hidden on the first click and then vice-versa on the
>> second click?
>>
>>
>> Eugene Louw wrote:
>> >
>> > I don't think the toggle(function, function) works or am i trying to
>> use
>> > it
>> > incorrectly?
>> >
>> > here is a extremely simple example ::
>> >
>> > <html xmlns="http://www.w3.org/1999/xhtml";>
>> > <head>
>> > <title>Testing :: </title>
>> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>> > <script type="text/javascript" src="/js/jquery-latest.js"></script>
>> >
>> > </head>
>> > <body>
>> > <div id="link" onclick="
>> >
>> >             $('#link').toggle(function(){
>> >             alert('one');
>> >               $('#one').hide();
>> >             },function(){
>> >             alert('two');
>> >               $('#one').show();
>> >             });
>> >
>> >             ">Flip</div>
>> > <div id="one">
>> > Hallo World
>> > </div>
>> > </body>
>> > </html>
>> >
>> > My jquery ::
>> >
>> > * $Date: 2007-01-22 00:27:54 -0500 (Mon, 22 Jan 2007) $
>> >  * $Rev: 1153 $
>> >
>> >
>> > Kind Regards,
>> >
>> > EUgene Louw
>> >
>> > _______________________________________________
>> > jQuery mailing list
>> > [email protected]
>> > http://jquery.com/discuss/
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Problems-with-toggle-tf3281893.html#a9129868
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> jQuery mailing list
>> [email protected]
>> http://jquery.com/discuss/
>>
> 
> 
> 
> -- 
> ------------------------------------------------
> Eugene Louw
> 
> Nowhere, South Africa
> ------------------------------------------------
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problems-with-toggle-tf3281893.html#a9130061
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to