$(document).ready(function(){ $('.dropb').hide(); $('.menu-item').bind('click', function(){ $(this).find('.dropb').css("display","block"); }); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <li> <a class="menu-item" href="#">Π£ΡΠ΅ΠΏΠ»Π΅Π½ΠΈΠ΅ ΠΈ ΠΎΡΠ΄Π΅Π»ΠΊΠ° Π±Π°Π»ΠΊΠΎΠ½Π°</a> <ul class="dropb"> <li><a href="">fdsfdfsf</a></li> <li><a href="">fdsfdfsf</a></li> <li><a href="">fdsfdfsf</a></li> </ul> </li> I would like the slide toggl when pressed, but I think that the selector is not correctly set.
Please tell me what the problem is, why does $(this) not work?
PS: jquery hooked up
bind? What version of jQuery? It has long been necessary to useon- Qwertiy β¦