Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/02/2005, 08:39
Avatar de tunait
tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 22 años, 8 meses
Puntos: 381
ok, ahora sí entendí

Bueno, lo que puedes hacer es asignarle el id sin los [] y acceder al elemento mediante el id directamente.

Podrías hace algo así

Código:
<script type="text/javascript">
function verifica(donde){
if(document.getElementById('aux_ciudades').value==""){
	alert("Debe de especificar la Ciudad o Municipio");
	return false
	}
}
</script>
Código:
<SELECT NAME="aux_ciudades[]" size="25" multiple class="texto" id="aux_ciudades" tabindex="5">
<? while ($row = mysql_fetch_row($ciudades)) { ?>
<option value='<?=$row[1]?>'><?=$row[1]?></option>
<? }?>
</select>
Y a tu form le pides....

Código:
<form  method="post" onsubmit="return verifica()" action= ...