A question about toggleClass... everything below works, so its not a
problem as such...
http://www.g-raff.co.uk/jquery/basic.html
I added a statement to the code to change the appearance of headings
that had been clicked, and back again when they were clicked a second
time.
function
Yes Steve an element can have two classes. :) The class attribute
of an element contains a list of space seperated words. Think of
them more has tags rather than actual OO programming classes.
Karl Rudd
On 1/21/07, Steve Jones [EMAIL PROTECTED] wrote:
A question about toggleClass... everything
Thanks Karl.
Consider thread closed
SJ
On 21 Jan 2007, at 8:45, Karl Rudd wrote:
Yes Steve an element can have two classes. :) The class attribute
of an element contains a list of space seperated words. Think of
them more has tags rather than actual OO programming classes.
Karl Rudd
On
On Jan 21, 2007, at 4:00 AM, Steve Jones wrote:
Thanks Karl [Rudd].
Consider thread closed
SJ
Not so fast! :)
While it's true that your script is adding a class to the space-
separated array (and then removing it), that's not the real reason
why the links are still bound to the click
On Jan 21, 2007, at 12:11 PM, Karl Swedberg wrote:
http://test.learningjquery.com/boundlink.htm
The first link uses this code:
$(document).ready(function() {
$('a.keepbound').click(function() {
$(this)
.removeClass('keepbound')
.next()
.html($(this).next().html() + '