I want to get my <li> element that when i right-click on it: a customized contextual menu appears, and i want to do my treatment over my initially selected element <li>. I’ve tried this $(this).attr("id"); but it returns an item of my contextual menu and not my original right-clicked <li>.
I want to get my <li> element that when i right-click on it: a
Share
To detect right click you can use,
jquery code
html code