You should be able to do something along the lines of:
var select_menu = $("tdocu");
var description =
select_menu.childElements()[select_menu.selectedIndex].innerHTML;- Alex 2009/7/6 Martín Marqués <[email protected]> > > I have a select pull down within a form that at submition executes > some ajax stuff and updates the div where the <SELECT> tag lives. HTML > code is like this (I'm using HTML_Template_IT from PHP, so the > BEGIN-END define a block, and {} define replacable text): > > <td class="titulo">Tipo de documento:</td> > <td> > <div id="tipodoc"> > <SELECT id="tdocu" name="tdocu"> > <!-- BEGIN option --> > <OPTION value="{VALOR}">{DESC}</option> > <!-- END option --> > </SELECT> > </div> > </td> > > What I want is, on submit to take the description that is shown in the > HTML page, not the value. How do I do that? > > -- > Martín Marqués > select 'martin.marques' || '@' || 'gmail.com' > DBA, Programador, Administrador > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
