Topic: How do I submit a form using Autocomplete
dru1000
pro
asked 6 years ago
Hi,
I would like to submit a form after the user selects a value from the Autocomplete.
How would I use jquery to determine which
<li>
was selected and also get the text value of that element?
Thanks
Add comment
Adrian Sawicki
free
answered 6 years ago
Hi dru1000,
You can get the value of input by:
$('#form-autocomplete')[0].value
or if you want to take its value directly by function you can for example:
$('#form-autocomplete').on('click', function(e){
console.log(e.target.value);
});
Regards
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Specification of the issue
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: Yes
- Provided link: No
Tags