I’m looking for a textbox Auto-fill script NOT an auto-complete script in jQuery.
Here’s is how it works:
- Radiobutton and textbox on the page
- Click the radio button
- Auto fill text box with radio button value
Here is a version is just JS:
<script language="JavaScript" type="text/javascript">
function autoFill(input,output){
document.forms[0].elements[output].value=input.value;
}
</script>
Here’s the radio button onClick code:
<input type="radio" onclick="autoFill(this,'txtDoorStyle')" value="Door Half Transom (011)" name="doorstyle">
And the text box that gets autofilled:
<input type="text" value="" id="txtDoorStyle" name="txtDoorStyle" >
I need a jQuery version that can autofill multiple textboxes with the same radio button value.
I have looked all over google and all I get are AUTO-COMPLETE textbox results.
Anyone have any leads or ideas?
THANKS!!!