locked
Jquery Autocomplete Widget RRS feed

  • Question

  • User-305496339 posted

    Hello Everyone, I have been trying to get the jQuery autocomplete to work on a text box thats using the EditFor Html Helper. when i use the intellisense in my javascript function I don't see the autocomplete selection. I am using this with ajax because I am pulling the values from an entity framework domain object and returning json objects. I think its an issue with me not using an ID Selector wired up to the EditFor Html Helper that jQuery recognizes. Any help would be greatly appreciated. 

    Thursday, April 26, 2018 10:47 PM

Answers

  • User2053451246 posted

    To get help with code you've written is helpful to post the code.  Otherwise we have to write it all from scratch, using different names of things than you have, which ultimately leads to errors when you try to implement it.

    If you view the source of the page the EditorFor will have a rendered textbox with an id.  Use that id to initialize the autocomplete.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 27, 2018 12:07 AM