jQuery Pro forecast


#1

Hello, can you please provide me a hint for the the third step of the project. In particular I do not exactly know how to handle siblings in jQuery

var main = function() {

$(".day row").click(function() {
$(".day row").sibling().toggle();
});

};

$(document).ready(main);


#2

@padu01,

-1
In your jQuery selector
you are point to the HTML element carrying the class-attribute with class-name "day"
but
what is the kind of attribute is row a class .row or an **id-attribute #row

-2
To manipulate the DOM by traversing through siblings
you use the next() or prev() Method's of jQuery.

https://api.jquery.com/next/
https://api.jquery.com/prev/


#3

could you please show the correct code? because I am doing it wrong.


#4

@pyblaster06767
Please present the FULL code you are using