Good afternoon, tell me, please, how can I solve the following problem.
There is a list of <li> , to each element of which you want to display a control option in the form of a button, clicking on which displays a different list (delete, hide, etc.).
As a “button” for displaying the second list, I use an image loaded as background: url(img.png) for each <li> element.
Problem - I can not get any access (for example, hover() ) to the image img.png (for changing the cursor and further processing the click). Is the problem of getting access to the background at all?
$li.css('background', 'new-image.png');. Now if you have it in:after, then there really I don’t know how to act not through css. In principle, all this needs to be done through:hoverand:active, and there should be no problems. - etki