i have the following html:
<span class="addEventHidden"><img src="/Content/Images/add.gif"></span>
<br>
<div class="event">My Event</div>
<div class="event">My Event 2</div>
<div class="event">My Event 3</div>
<div class="event">My Event 4</div>
i then have the following event handler when i click on any "event" div:
$('.event').live('click', function () {
i now want to get a reference to the object with the class="addEventHidden" from this event handler. i tried this:
var previousAddEvent = $(this).prev(".addEventHidden");
but that didn't seem to work. Any suggestions?