Jump to content

Event Listener Help please


Monkuar

Recommended Posts

I want to make a event listener so I don't have to use onhover="xxxx" and put it on each html tag.

 

let's say I have

 

<div id='postactions' style='display:none'>

 

hey

 

</div>

 

 

 

 

Now, instead of putting a onhover=function() on each tag, how can I make it so javascript will do that onhover function for all ID's that are postactions?

Link to comment
https://forums.phpfreaks.com/topic/267684-event-listener-help-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.