Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

How to get id and display name with onResultClick #102

Open
oyapici opened this issue Jan 6, 2019 · 1 comment
Open

How to get id and display name with onResultClick #102

oyapici opened this issue Jan 6, 2019 · 1 comment

Comments

@oyapici
Copy link

oyapici commented Jan 6, 2019

Hello,

I use Ajax Live Search form in another form. I can post selected item with onResultClick as $('#EmployeeId').val(selectedOne);

But, I need to display Employee name upon selection and submit (_POST) employee ID as hidden value. Is it possible ?

Thanks

Oyapici

@scanmaster
Copy link

You can put multiple fields in your select for ajax live so just use the value of that and put it into an onClick event for the listbox.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants