In the above code I get 'M' and 'T' values from databse and the Manager radio Button works fine based on the value 'M'. But never Tariner Radio is checked even the value from database is 'T' and the alert shows it too.
Note: In the form I used attribute name="who" for both the Radio Buttons
Can any one help me? thanks
In the above code I get 'M' and 'T' values from databse and the Manager radio Button works fine based on the value 'M'. But never Tariner Radio is checked even the value from database is 'T' and the alert shows it too.
How do you get the value from Database? Are you getting the right values?
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
Yes I get either 'M' OR 'T' depending on value in DataBase.
alert("cols[5[] : " cols[5[]); displays it. but somehow the document.getElementBYId('Trainer').checked=true; not working.
codingforumsun.
below is the some more code from webpage. I used name=Who for both the radio buttons.
below is the some more code from webpage. I used name=Who for both the radio buttons.
<input type="radio" value=T name=Who id="Trainer">Trainer?<input type=radio value=M name=Who id="Manager">Manager?
Could you post your entire form and some more javascript, so that we can try to execute at our end?
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)