I have multiple div id,s = slide
I am clicking on the <a id=medium> and want to check if a picture or if the rsImg class (in the slide div) is exisiting (check if picture is in the div)

var test = $('#slide').children().hasClass('rsImg');
this returns true – guess I have to add a $this but can’t find the solution
regards
You need to use find method to get the jQuery object instead of hasClass.
Or you can simply use use descendant selector.