Hi
I am facing a problem with my code ....
this is what I am doing ...
I am running this dropdown in while loop...and i want when i select Cheque then display textbox otherwise textbox not display. but when i select Cheque on selection function work only for first row not working in other row.
I am attaching the code snippet as well ... see if you can help ...
I am facing a problem with my code ....
this is what I am doing ...
I am running this dropdown in while loop...and i want when i select Cheque then display textbox otherwise textbox not display. but when i select Cheque on selection function work only for first row not working in other row.
I am attaching the code snippet as well ... see if you can help ...
Code:
<script language="javascript">
function handleOther(val){
if(val == "Cheque"){
document.getElementById('cheque_no').style.display = '';
}else{ document.getElementById('cheque_no').style.display = 'none'; }}</script>
Code:
<select name="paidmode[]" onChange="handleOther(this.value)"> <option value="Cash">Cash</option><option value="Cheque">Cheque</option> </select> <input type="text" name="cheque_no[]" size="12" id="cheque_no">
Comment