Mackski Posted May 8, 2023 Share Posted May 8, 2023 I'm using a page reference autocomplete field in a template as a "lookup" then populating other fields via ajax call. I want to reset the autocomplete on success, i've tried a few things but the value still persists.. What i've tried: $('#Inputfield_search).val('') // no effect $('#Inputfield_search).data('selectedlabel',''); // no effect I guess last resort would be to trigger the (X) on the autocomplete input. Is there an easier way to reset this field type via JS? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now