List Item, returning the value of the link inside - is it possible?
Hi if I have this code:
<li class="getMe" id="home2"><a href="#" value="2" data-transition="slide">Yahoo</a></li>
<li class="getMe" id="home3"><a href="#" value="3" data-transition="slide">Yahoo</a></li>
<li class="getMe" id="home4"><a href="#" value="4" data-transition="slide">Yahoo</a></li>
Using $(this) how would I get the values from the <a href> statement.
Presently I am trying to something like this:
$('. getMe').live('click', function(event){
alert('id = "+$(this).attr('id'));
});
But I would like to get the value of the <a href> and ideally don't really want to make the click event function call from the link but instead keep it from the <li> class.
Hope that makes sense,
Lammie.