[support] How to add "selected" attribute to select list <option> tag

Sarah.Vardy at student.griffith.edu.au Sarah.Vardy at student.griffith.edu.au
Wed Nov 28 04:49:29 UTC 2007


also try 
Ajax Form Builder 
I haven't used it but it does let you make customised forms...


----- Original Message -----
From: Sarah.Vardy at student.griffith.edu.au
Date: Wednesday, November 28, 2007 2:46 pm
Subject: Re: [support] How to add "selected" attribute to select list <option> tag
To: support at drupal.org

> hey steve,
> 
> try the cck form markup module.
> 
> you can use cck for loads of stuff.
> 
> cheers,
> 
> sarah
> 
> ----- Original Message -----
> From: Steve Edwards <killshot91 at comcast.net>
> Date: Wednesday, November 28, 2007 2:25 pm
> Subject: [support] How to add "selected" attribute to select 
> list <option> tag
> To: support at drupal.org
> 
> > Well, I'm back again, and this time I have a question about 
> > attributes for select options in a form.  I have a form 
> > that has a 
> > select element (multi-select) that lists users.  The form 
> > is for some admin settings for a module.  When the form 
> is 
> > displayed, I 
> > need to be able to highlight specific options in the list 
> based 
> > on data returned from a query.  I've been looking all 
> day, 
> > and 
> > haven't been able to figure it out.  There is the 
> > #attribute key, but it is for the field as whole (at least as 
> > far as I can 
> > determine), and doesn't work for each individual <option> tag.
> > 
> > If anybody could point me in the right direction, I would 
> > appreciate it.
> > 
> > Thanks.
> > 
> > Steve
> > -- 
> > [ Drupal support list | http://lists.drupal.org/ ]
> > 
> 
> Research Computing Services
> Sarah.Vardy at student.griffith.edu.au
> 0402241794
> 

Research Computing Services
Sarah.Vardy at student.griffith.edu.au
0402241794
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20071128/a1669c34/attachment-0001.htm 


More information about the support mailing list