RE:Actualización dinámica de SELECTS...
Publicado por
ups (1 intervención) el 06/09/2001 13:02:31
Yo creo que se podría hacer sin recurrir a programación en el servidor, con Javascript. Echa un vistazo a este método de DHTML:
add
The add method can be used to add new options to a <SELECT> element. Note that before an option can be added, its element must first be created using the createElement method of the Document Object (see that topic for details).
The add method accepts arguments of element and index, which represent the element to be added and the index (i.e. position) at which it is to be inserted into the option list. For example, an option element, created with
newOpt=document.createElement(OPTION)
can be added as the first option in a <SELECT> element (whose ID is 'selMain')
selMain.add(newOpt,0)