How do I send text to auto complete text box?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
netenken1
User
Posts: 64

How do I send text to auto complete text box?

Post by netenken1 »

How do I send text to auto complete text box with client code and then choose a item ?
(Anyone can useserver side code to do is fine also...)

I use the above code, but it just only shown the auto complete dropdown, but not select the item

//------------------------------------------
$('#sv_x_customers_id').focus();

//emu the Down-Arrow key
var e = jQuery.Event("keydown");
e.which = 50;

//emu the enter key
var e = jQuery.Event("keydown");
e.which = 13;
//------------------------------------------


mobhar
User
Posts: 11703

Post by mobhar »

You should post also your tables schema and your related project settings so others could help you to find out the solution straightforward.


netenken1
User
Posts: 64

Post by netenken1 »

ok, thx, but I just want to emulate the original keypress send action (DOWN-ARROW (ASCII 50) + RETURN (ASCII 13)), without coding according the db schema....


mobhar
User
Posts: 11703

Post by mobhar »

Just press [F12] from your browser, and check whether any Javascipt error message returned.


Post Reply