[development] Drupal way of doing onchange
Jeff Greenberg
jeff at ayendesigns.com
Sun Nov 22 23:28:42 UTC 2009
Jamie Holly wrote:
> $("#{field_id}").prev('label') will give you the label
Might have worked if the label were encased in <label> tags, but it's
really ugly...like this
<tr>
<td class="generalclass">labeltest</td>
<div>field</div>
</td>
</tr>
don't know why it was done that way. I tried prev("td"),
prev("td.generalclass") and prev("tr") ... nada
More information about the development
mailing list