For example if I want to do something if parent element for used element hasn\'t got ul tag as next element, how can I achieve this?
ul
I t
Try negation operator ! before $(this):
!
$(this)
if (!$(this).parent().next().is('ul')){