Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Show autocomplete on focus or keydown

Scott WesleyOct 9 2012 — edited Oct 19 2012
Hi all,

Using Apex 4.1, I'm trying to adjust any "Text field with autocomplete" item on my page so that it will automatically display the options onfocus or when key-down.

I've tried to adapt this to APEX
http://forum.jquery.com/topic/autocomplete-on-focus-show-default-drop-down
based on ideas I saw here
2130716
but my jquery kungfu is still growing...

For instance, I tried this for a specific field - it's syntactically ok & no errors reported in the console, but nothing happens on focus
(Footer text on page)
<script type="text/javascript">   
$("#P1_ITEM").bind('focus',(function(){
	if (this.value == "")
		$(this).trigger('keydown.autocomplete');
}));
</script>
Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2012
Added on Oct 9 2012
6 comments
5,704 views