I have lots of image on the page. <img src="images/qview.gif" id="demo1" width="24" height="24" data-url="demo-modal.html" class="zoom-btn"> <img src="images/qview.gif" id="demo2" width="24" height="24" data-url="demo-modal.html" class="zoom-btn">... and so on I want to get ID of the image on mouseover using jQuery. How to?
Side note, 90%+ of the time (pulling a percentage out of my backside) you are using JavaScript to trap a hover, you are likely doing something wrong -- specifically using JavaScript to do CSS' job. Hence why I say the majority of what people use jQuery for belongs in the cutting room floor.
In this instance he's probably stuffing cookies or tracking user movements on the page and css can't do that.
Oh, the type of sleazeball BS that makes people disable scripting and gives cookies a bad name... gotcha.