Could you rephrase it?..The question has two meaning:
1.) When the checkboxes are clicked a "400" or "600" is displayed on a text box.
2.) When the checkboxes are clicked a 400 or 600 textbox appears.
I suppose it's no.1, See if this help:
HTML Code:
<script type="text/javascript">
window.onload=function()
{
var check400=document.getElementById('check400'),
check600=document.getElementById('check600'),
output=document.getElementById('output');
output.disabled='disabled';
check400.onclick=function()
{
if(this.checked){
check600.checked=false;
output.value='400';
}else output.value='';
}
check600.onclick=function()
{
if(this.checked){
check400.checked=false;
output.value='600';
}
else output.value='';
}
}
</script>
<input type="checkbox" name="mycheck" id="check400"><label>400</label>
<input type="checkbox" name="mycheck" id="check600"><label>600</label>
<br>
<label>Shows Here: </label><input type="text" id="output">
Bookmarks