Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Synchronize textbox & listbox 1

Status
Not open for further replies.

ZmrAbdulla

Technical User
Apr 22, 2003
4,364
AE
Redirected from thread855-1294393.
Thanks for any help.


________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
Such as this.
[tt]
<html>
<head><title>demo</title>
<script language="javascript">
function syncit(obj) {
var oelem=obj.form.selname;
var imatch=0;
for (var i=0; i<oelem.options.length; i++) {
if (oelem.options.value==obj.value) {
imatch=i;
break;
}
}
oelem.selectedIndex=imatch;
}
</script>
</head>
<body>
<form name="formname">
<input type="text" name="txtname" onblur="syncit(this)" title="enter 'tek' or 'tips' to see effects" /><br />
<input type="submit" /><br />
<select name="selname">
<option value="">-blank-</option>
<option value="tek">tek</option>
<option value="tips">tips</option>
</select><br />
</form>
</body>
</html>
[/tt]
 
Thanks tsuji, this is almost what I am looking for

________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top