JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<div class="property-info">
<span>Beds:</span><strong>3</strong>
<br>
<span>Baths:</span> <strong>2</strong>
<br>
<span>Sq. Ft.:</span> <strong> 1,055 </strong>
<br>
<span>Type:</span> <strong>Condo</strong>
<br>
</div>
JavaScript
$('.property-info').on('click',function(){
var t = $(this).find('span');
t.each(function( index ) {
console.log( index + ": " + $( this ).text() );
});
});