473,473 Members | 1,604 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

changing default button

i have a form with 3 buttons with a text box next to each button

what i want to do is when a textbox is filled out the default button is
changed to the button next to that text box rather than the first button on
the form.

how would i do this.

Chris
Sep 26 '05 #1
2 2692
do you mean the tab index? are you able to explain / provide
non-working example?

Sep 26 '05 #2
<form method="POST" action="page.html">
<p><input type="text" name="box1" size="20"><input type="submit"
value="Button 1" name="B1" onclick (do something 1)></p>
<p><input type="text" name="box2" size="20"><input type="submit"
value="button 2" name="B2" onclick (do something 2)></p>
<p><input type="text" name="box3" size="20"><input type="button"
value="button 3" name="B3" onclick (do something 3)></p>
</form>

in the above example if box 3 is filled in and you press the enter key,
button 1 will be operated as it is the first button on the page and is the
default

what I want is when box 3 is filled out and the enter key is pressed button3
is operated, maybe when one of the text boxes gets the focus then the
appropriate button is set as default - hope you understand what I want
<ij********@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
do you mean the tab index? are you able to explain / provide
non-working example?

Sep 26 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Free-Ed, Ltd. | last post by:
I am going nuts trying to find a paragraph in a book that described how to change the text content (HTML) in a DIV. Actually I have an array of HTML strings that I want to drop into the DIV,...
5
by: David Deacon | last post by:
Hi i was given the following advise,below my OriginalQuestion I am a little new to ADOX can you direct me to the following Do i place the code behind a button on a form? Or do i place it in the...
1
by: VINAY | last post by:
Dear All, The subject line could be bit confusing. So let me explain in details, please have patience. I have developed an ActiveX Control(Combo Box Control) in VB6 for a touch screen...
4
by: Jim M | last post by:
Two questions: 1) I have a scheduling application (Access 2002) that allows multiple staff members to edit notes on their meetings and appointments from their offices. A receptionist views a...
4
by: Robson Carvalho Machado | last post by:
Dear friends, I have an IFRAME that I want to change src url when clicking a button. How can I change IFRAME src using button_click ? <iframe runat="server" frameBorder=0 marginHeight=0...
1
by: Firewalker | last post by:
I am attempting to change the backColor property on the previously instantiated buttons FROM a listbox_doubleClick event. I thought it would be something like this: If...
2
by: Colin McGuire | last post by:
Hi, according to the on-line documentation you can change the background colour of, for example a button, to Gray as shown below. Dim b as Button b.BackColor=Color.Gray If I programmatically...
1
by: Ben | last post by:
I have a formview with a few dropdownlists (software version, database version, etc). When a software version is selected, the database version dropdownlist updates itself accordingly. When in...
3
by: Don Miller | last post by:
I have a webpage (form) that has multiple buttons contained within, and all cause a postback if clicked. I have a textbox where users enter a phrase and then have to click a "Search" button that...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.