-
Return fires button
Hello
This is kind of difficult to explain but here goes. My problem is this. I
have numerous textboxes and buttons in a form. On some of the textboxes I
have javascript running off various events. These include the onchange
event. For these textboxes I catch the return key. This all works fine in a
form with no buttons.
However!
When I add buttons (like I do have on this form), when ever I click into a
textbox, the first button I put on the page, gets the the focus/default fire
block around it (The thin black box). If I press return while in the
textbox it fires the button. I realise that this is a default behaviour but
is there anyway I can change this? I do not want to always fire the button.
Only when in certain textboxes or if the button is clicked directly.
Thanks
Murray
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks