given series of DIVs w/unique ID as in:
<div id="2988">
<div class="site">YaHoot.com</div>
<div class="logo">/images/yahootLogo.jpg</div>
//[and so on]
<input type="button" value="YaHoot" onclick="javascript:processMe('2988');" />
</div>
//[followed by bunches more divs repeating that structure]
I'm trying to code a click handler that can map a form's hidden fields with the contents of each of the child DIVs.
In other words, the form has a hidden field:
<input type="hidden" name="logo">
that should be valued with /images/yahootLogo.jpg when the given button is clicked.
thx