miércoles, 30 de mayo de 2007

Agregar opciones en una lista

function agregar(){
pat=txtpaterno.value;
mat=txtmaterno.value;
nom=txtnombre.value;
completo=pat+" "+mat+" "+nom;
nuevo=new Option(completo,completo);
milista.options[milista.length]=nuevo;
}

No hay comentarios: