Adding event for enter key on text box
Hi,
I have a web form that has multiple text boxes with a button next to each, like for example 4 search boxs consecutively.
When someone clicks enter on the text box it submits the whole page and doesn't fire the event attached to the button next to the textbox.
In classic asp i would use multiple form tags to make each text box link to the button. how would replicate this functionality? I think you'd use the Attributes.Add method of the textbox control, but what javascript do you add?
-- Jenni
|