KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a customised jQuery autocomplete control that is declared something like this. $('#SystemCode_Autocomplete').autocomplete({ source: [{"label":"Access","value":0},{"label":"Documentum","value":0}], //move values minLength: 1, change: function(event, ui) {// some function}, select: function(event, ui) {// some function} }); The change and select events are custom. The problem is if I type something into the textbox then click the submit button (i.e. no tab out, or lost of focus), or if I press the key to submit after typing into the text box, the change event isn't fired and it has to be before I submit. I was hoping to do it without putting javascript behind the submit button, and to ideally do it from within the autocomplete control itself. I tried adding the change to the blur event. ${'foo').blur(function() { $('bar').trigger('autocompletechange'); // or ${'foo').blur(function() { $('bar').change(); But none of them have worked, anyone have any ideas?
Tags (comma-separated)
Save Edits
Cancel