There are many divs on the same page with id-wrap, they have h3 and another div with text-class, which by default is display noun. It is necessary that by clicking on the h3 div-text it is in the wrap in which the h3 it clicked opened. I am writing a primitive jQuery script:
var wrap = $('#wrap'); wrap.find('h3').click(function(){ wrap.find('.text').slideToggle(); });
But for some reason, it only works with the first wrap, the rest you click and zero reaction ... Direct, on the right path ...
.wrap
- Grundy