jQuery stopping Popup Pro from working

Look for this script in the child theme functions.php:

<script type=”text/javascript”>

jQuery(document).ready(function ($) {

$(“.eventList”:wink:.find(“a”:wink:.addClass(“anchor”:wink:;

$(‘.eventList li’:wink:.each( function(i,v)

{

if($(this).find(‘time’:wink:.attr(‘datetime’:wink:.substring(0,10) ==

$(this).next().find(‘time’:wink:.attr(‘datetime’:wink:.substring(0,10))

{

$(this).next().children(‘.wpmudevevents-date:first’:wink:.hide();

$(this).next().addClass(‘not-first’:wink:;

}

})

});

</script>

This is stopping the popup pro from working. If I remove this code then the popup pops up and works.

The jQuery above is code that was supplied to me by you guys here a few months ago. :slight_smile: Any help would be appreciated.