Manage Learn to apply best practices and optimize your operations.

Lookup value in keyword options

This code simulates the fetching from a field in a field "keyword."

In the field it has "field_Entry," in the event "onKeyUp" places this code "SearchKeyword()." With this, when the user types the information in the field, it will automatically go to search the input of the data in the field "keyword."

This works only on Internet Explorer 4.0 or higher.

Code: function SearchKeyword(){
	var doc = document.forms[0];
	for(n=0; n <= doc.field_Entry.length - 1; n++){
		if(doc.field_Entry.value == doc.field_Keyword.options[n].text.substring(0,doc.field_Entry.value.length)){
			doc.field_Keyword.options[n].selected = true;
			return true;

This was last published in January 2001

Dig Deeper on Domino Resources - Part 7

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...