Razzy
07-06-2012, 11:26 AM
hey people, im not sure whether i have posted this on the right place because im not sure whether this problem will be solved through javascript or html, but i have this small problem...i have four radio buttons, with each radio button linked with a textbox. initially all four textbox should be disabled until one of the radio button is selected. The textbox that is linked to the radio button should be enabled. however if another radio button is selected, then the textbox that is already enabled should be disabled again, and the textbox to which the newly selected radio button should be enabled
would really appreciate it if someone could help
i have made a start on it.the coding is as follows....
<input type="radio" name="test" onclick="chickFill1.disabled=false"/>in KG: <input type="text" id="chickFill1" size="2" value="" disabled="disabled"/>
<br/>
<br/>
<input type="radio" name="test" onclick="chickFill2.disabled=false"/>in lbs: <input type="text" id="chickFill2" size="2" value="" disabled="disabled"/>
<br/>
<br/>
<input type="radio" name="test" onclick="chickFill3.disabled=false"/>in money: £<input type="text" id="chickFill3" size="4" value="00.00" disabled="disabled"/>
<br/>
<br/>
<input type="radio" name="test" onclick="chickFill4.disabled=false"/>quantity: <input type="text" id="chickFill4" size="2" value="" disabled="disabled"/>
thank you
would really appreciate it if someone could help
i have made a start on it.the coding is as follows....
<input type="radio" name="test" onclick="chickFill1.disabled=false"/>in KG: <input type="text" id="chickFill1" size="2" value="" disabled="disabled"/>
<br/>
<br/>
<input type="radio" name="test" onclick="chickFill2.disabled=false"/>in lbs: <input type="text" id="chickFill2" size="2" value="" disabled="disabled"/>
<br/>
<br/>
<input type="radio" name="test" onclick="chickFill3.disabled=false"/>in money: £<input type="text" id="chickFill3" size="4" value="00.00" disabled="disabled"/>
<br/>
<br/>
<input type="radio" name="test" onclick="chickFill4.disabled=false"/>quantity: <input type="text" id="chickFill4" size="2" value="" disabled="disabled"/>
thank you