Hola gente,
Necesito hacer que al seleccionar una opción del "select" me habra un input para ingresar un texto, pero aunque le he dado mil vueltas no me sale, asi que lo he dejado directo, pero no es lo que necesito. Es decir, si selecciono cualquier opcion del select todo bien, pero si selecciono "other" necesito que aparezca el input "comment""
Este es el codigo
Código PHP:
Ver original<form action="save_edit_closer.php" method="POST">
<table class="css3" id="mytable" cellspacing="0">
<tr class="nobg">
<th scope="col" width=100><strong>Date</strong></th>
<th scope="col" width=100><strong>Transfer ID</strong></th>
<th scope="col" width=150><strong>Client Name</strong></th>
<th scope="col" width=200><strong>Phone #</strong></th>
<th scope="col" width=300><strong>Address</strong></th>
<th scope="col" width=200><strong>Transfer Status</strong></th>
<th scope="col" width=150><strong>Comment</strong></th>
<th class="title" scope="col"></th>
</tr>
<tr class="spec">
<td align=center width=100>'.date('Y-m-d').'</td>
<td align=center width=100>'.$fila['transfer_id'].'</td>
<td align=center width=150>'.$fila['name'].' '.$fila['last_name'].'</td>
<td align=center width=200>'.$fila['phone'].'</td>
<td align=left width=300>'.$fila['address'].'</td>
<td align=center width=200><select name="transfer_status" id="transfer_status"/>
<option value="costumer">Costumer</option>
<option value="not intersted">Not Interested</option>
<option value="no payment method">No Payment Method</option>
<option value="has a system">Has a System</option>
<option value="incoherent">Incoherent</option>
<option value="hang up">Hang Up</option>
<option value="does not handle finaces">Does not Handle Finances</option>
<option value="ca not afford it">Can not Afford it</option>
<option value="other">Other</option>
</select></td>
<td align=left width=150><input type="text" name="comment" placeholder="If Other explain why?" size="60"></td>
<input type="hidden" name="user" value="'.$fila['user'].'">
<input type="hidden" name="closer" id="closer" value="'.$_SESSION['login'].'">
<input type="hidden" name="date" value="'.$fila['date'].'">
<input type="hidden" name="transfer_id" value="'.$fila['transfer_id'].'">
<input type="hidden" name="name" value="'.$fila['name'].'">
<input type="hidden" name="last_name" value="'.$fila['last_name'].'">
<input type="hidden" name="phone" value="'.$fila['phone'].'">
<input type="hidden" name="address" value="'.$fila['address'].'">
<input type="hidden" name="status" value="'.$fila['status'].'">
<td align=center><input type="submit" value="save"></td>
</tr>
</table>
</form>
desde ya gracias por el tiempo y las ideas.