Currently I have this hidden input in a loop and it works:
<input type="hidden" class="md" name="business-222" value="11|55|some name| some address|800-444-8800|somepage.html" />
<input type="hidden" class="results" name="business-222" value="22|77|other name| other address|800-444-8800|otherpage.html" />
$(".results").each(function(){
var text = $(this).attr('value').split('|');
var name = text[2];
...
});
I was womndering what would be a good way to get the data from this structure below without using hidden elements..
<tr>
<td><a href="/somepage.html">some name</a></td>
<td>some address</td>
<td>some phone</td>
</tr>
<tr>
<td><a href="/otherpage.html">other name</a></td>
<td>other address</td>
<td>other phone</td>
</tr>
I was thinking to make it and somehow select first second third td ?
Thanks !!