>From what I understand of the _expression_ handling code, this would require hard coding and not just a new selector. P could try using this instead (with some tweaking :) ):$(document).ready(function() {
$('#foo dt').click(function() {
var show=false; var
Webunity | Gilles van den Hoven schrieb:
> Use this code instead:
>
> $(document).ready(function() {
> $('#foo').find('dd').hide().end().find('dt').click(function() {
> $(this).find('dd').each(function() {
> if ($(this).is(':visible')) {
>
Use this code instead:
$(document).ready(function() {
$('#foo').find('dd').hide().end().find('dt').click(function() {
$(this).find('dd').each(function() {
if ($(this).is(':visible')) {
$(this).slideUp();
Hello,
reading some tutorials and trying to use them I have a problem with
one of them :
I've a list of dl, dt, dd like this :
Foo
My foo text
Some more foo text
I use this function in my header :
$(document).ready(function() {
$('#foo').find('dd').hide().end().find('dt').click(fun