I have a html DL list. Whenever I click on DD, I would like to get my class name and Make it jazzery I would like to give load as a parameter in the form of a parameter.
This is my code:
How do I change class class to change from class class to element class variable.
$ ('dd'). Click (function () {$ ('# img'). Var elementClass = $ (this) .attr ("class"); $ (this) .toggleClass ('active') siblings (). RemoveClass ('Active'); $ ('.bio'). Load ('/people/index.html .kilye', function () {$ ('# img'). Hide (); $ ('.bio') Slide Toggle ('Slow');});});
A simple string completion:
$ ( '.bio'). Load ('/ people / index' '' + element class, function () {})
Comments
Post a Comment