How can I use $(this) in a function called by the onClick event?
- by tepkenvannkorn
I want to set the current state to selected when clicking on each link. I can do this by:
<ul class="places">
<li class="selected">
<a href="javascript:void(0)" onclick="myClick(0);">
<span class="date">Saturday November 2, 2013</span>
<span class="time">10am – 12pm</span>
…