[jQuery] Re: jQuery text toggle effect

2009-06-21 Thread mojoeJohn
k well i found a great solution that i rigged to fit my own situation ... i worked w/ the code a bit and changed it up some from what i originally posted. here's the link to the article i found http://www.sitepoint.com/forums/showthread.php?t=554851 the jquery: $('.showhide').click(function()

[jQuery] Re: jQuery text toggle effect

2009-06-21 Thread mojoeJohn
I tried the code, but it didn't change the text back and how do i get it to work on multiple instances of show/hide. any ideas? On Jun 19, 11:33 am, "Mauricio \(Maujor\) Samy Silva" wrote: > Please: > 1-) Wrap "Show" within a span element. > 2-) Get rid of the style atributte for the ul. ul's ar

[jQuery] Re: jQuery text toggle effect

2009-06-21 Thread mojoeJohn
thanks MATT! On Jun 19, 3:55 pm, Matt Kruse wrote: > On Jun 19, 9:02 am, mojoeJohn wrote: > > > obviously, i want thetexttotogglethe words "show" and "hide" in > > accordance to the slidetoggle. > > I keep this in my toolbox: > > //Toggletextwithin an element using regular expressions. > // Use

[jQuery] Re: jQuery text toggle effect

2009-06-19 Thread Matt Kruse
On Jun 19, 9:02 am, mojoeJohn wrote: > obviously, i want the text to toggle the words "show" and "hide" in > accordance to the slide toggle. I keep this in my toolbox: // Toggle text within an element using regular expressions. // Useful for changing "show" to "hide" and back when toggling elem

[jQuery] Re: jQuery text toggle effect

2009-06-19 Thread mojoeJohn
Thanks, man i appreciate the help. I figured i had to create a local variable and that i would need the if statement, but i haven't written enough of those kind of statements to be able to do it myself. this is a step in the right direction. AWESOME!!! On Jun 19, 11:33 am, "Mauricio \(Maujor\) Sa

[jQuery] Re: jQuery text toggle effect

2009-06-19 Thread Mauricio (Maujor) Samy Silva
Please: 1-) Wrap "Show" within a span element. 2-) Get rid of the style atributte for the ul. ul's are block level elements by default. Show ... 3-) And here goes the code; $(".showhide").click(function() { $(this).children(".clients").slideToggle('slow'); var currentText = $('span