Im working on a function where i need to return the active elements ID.
the element will have
class="main" id="1" onmouseover="showSub()">
Would someone be able to write me a simple function which simply puts the elements ID number in an alert box? I can figure out the rest i need from that .