I have the following code:
$('.my-image').function(){
$(this + ' div').show();
},
function(){
$(this + ' div').hide();
});
I know it’s not working, because I request an object with a div, but I don’t know how I should be more explicit.
<div id='galery'>
<div class='my-image'><div></div></div>
<div class='my-image'><div></div></div>
</div>
How should I call the jquery function to show the inner div (child div)?
should be
or
thisis an object, not a string.