I have some custom validation that has some complicated business rules so I put them all in a function.
On my combobox change event I call the validation function, if it returns true I save the record back to the database and it gets added to the combo.
But if this fails I want to blank out the combo and set focus to it, I have this part all working, the issue I have is that the change event doersn't get triggered the next time they enter the same value.
Example:
1)User types in "Invalid" in the combo, this fails validation so it blanks it out and sets focus
2)If user types in anything OTHER than 'Invalid' then it works as it should, the change event triggers and it executes the logic
3)But if user types 'Invalid' again, it doesn't trigger the change event, it is remembering that value even though it was blanked out.
How do I reset the combo so that anything they type in will trigger the change event?