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