To get the values inside the span tags when you click on a specific div, do the following:
$('.alert-info').click(function(){ var $spans = $(this).find('span');
EDIT
In case we already know that .alert-info is a DIV, then there is no need to point to a search from div.alert-info. Use .alert-info directly for performance .alert-info only :)
palas source share