[development] Drupal way of doing onchange

Jamie Holly hovercrafter at earthlink.net
Sun Nov 22 22:57:21 UTC 2009


$("#{field_id}").prev('label') will give you the label

Jamie Holly
http://www.intoxination.net 
http://www.hollyit.net



Jeff Greenberg wrote:
> Greg Holsclaw wrote:
>
> > A quick way to do this is to use the attributes as you mentioned. Any HTML
> > attribute can be added into the attributes array as follows:
> >   
> Thanks. That's what I've done for now, until I figure out how to make 
> CTools work. Frustratingly, the field has an ID, but neither the label, 
> the cell they're in or the row that the cell is in have ID's. So without 
> doing more work than is warranted, the field disappears but not its 
> label. So when the field disappears, I replace it with a string 'Not 
> applicable.'
>
>
>   


More information about the development mailing list