[Solved] If else is not workin in Jquery? [closed]


Inside the hover event handler, this is going to be an li, since it is attached to $('.smenu li'). Then $(this).find('li') will find li elements inside .smenu li, which presumably don’t exist.

solved If else is not workin in Jquery? [closed]