I\'m trying to get the content of a span when a button is clicked. This is the html:
$('button.select-location').live('click', function(event){ var span_val = $(this).next("span").html(); alert('selecting...' + span_val); });