I have a blockui displaying a form to the user. If the user enters bad data into the form and then tries to submit the form, I notify them using another blockui (child) with an OK button, (please, this is a requirement), if the user hits the Enter key, the child disappears, but immediately reappears again. I suspect, (I'm sure actually) that the child does not get keyboard focus, so any key presses are passed to the parent. Since there is still bad data in the parent's fields, the child is displayed again. As a matter of fact, if I tab while the child is present, I see focus cycling between the text fields on the parent. What I want to happen is that the child handles all key presses and dismisses itself when Enter is pressed. How can I achieve this?
Thanks