Link to home
Start Free TrialLog in
Avatar of burnedfaceless
burnedfaceless

asked on

jQuery autocomplete event

I have a jQuery autocomplete where it is populated a JSON file with a label and a value.

Can someone write a event handler in my script that will call a function and alert the value when it is selected from the autocomplete?

$(document).ready(function() {
    $('#rates-input').autocomplete({
        source: "../js/selections.php"
    });
});

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of burnedfaceless
burnedfaceless

ASKER

Thanks.

I'm a little over my head with the jQuery but I've done enough coding to get it done.

Will work through a book once I get this done.