I have some div's ([class^="exhibit_caption_img"] & did have a function that fires on hover, but I put a wrapping border "[class^="exhibit_caption_imgbord"]" on top of it to mask some stuff, so now the hover event isn't registering.
The callout suggested this:
simulate(document.getElementById("btn"), "click");
Tried writing it in jquery like this:
- $('[class^="exhibit_caption_imgbord"]').hover(function() {
- simulate([id^="exhibit_caption_img"], 'mouseover')});
Keeps saying can't find variable simulate.
Defined the function like this:
- $(function() {
- function simulate(element, eventName) { ...
What do I need to correct?
Thanks, Bill