[ad_1]
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.
[ad_2]
solved If else is not workin in Jquery? [closed]