I suggest having a fallback, such as if the user doesn't have javascript (the below script should do just that).
Code:
<script type="text/javascript">
var textbox = function(me){
if(me.checked == false){
var textb = document.createElement('input');
textb.type = "text";
textb.name = "text";
me.parentNode.appendChild(textb);
}
setInterval(function(){
if(me.checked == false){
me.parentNode.removeChild(textb);
return false;
}
}, 50);
};
</script>
<form action="index.php" method="get">
<input type="radio" name="radio" /><br />
<input type="radio" name="radio" /><br />
<input type="radio" name="radio" onmouseup="textbox(this)"/><noscript><input type="text" name="text" /> (Fill this in, if you've checked the radio next to this)</noscript>
</form>
Bookmarks