473,405 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

In two form of a html file having different fields of same Tab Index.How to identify?

in two forms in a html file there are different field having same tabIndex.then when pressing Tab button the curser is moving randomly. suppose, there are tabindex 1 in two fields , then the curser moving from one form to another form. How to bound the cursor ,so that, it can first finish the current form until or unless the another form is clicked..I am giving you the code...

Expand|Select|Wrap|Line Numbers
  1. <body>
  2.     <form name="f1" id="f1">
  3.         a    <input size=40 id=tb1 type="text" name="tb1" tabindex="1"><BR>
  4.         b    <input size=40 id=tb2 type="text" name="tb2" tabindex="2"><BR>
  5.         c    <input size=40 id=tb3 type="text" name="tb3" tabindex="3"><BR>
  6.         d    <input size=40 id=tb4 type="text" name="tb4" tabindex="4"><BR>
  7.         e    <input size=40 id=tb5 type="text" name="tb5" tabindex="5"><BR>
  8.         f    <input size=40 id=tb6 type="text" name="tb6" tabindex="6"><BR>
  9.         <input type="submit"/>
  10.     </form>
  11.     <form name="f2" id="f2" >
  12.         g    <input size=40 id=tb1 type="text" name="tb1" tabindex="1"><BR>
  13.         h    <input size=40 id=tb2 type="text" name="tb2" tabindex="2"><BR>
  14.         i    <input size=40 id=tb3 type="text" name="tb3" tabindex="3"><BR>
  15.         j    <input size=40 id=tb4 type="text" name="tb4" tabindex="4"><BR>
  16.         k    <input size=40 id=tb5 type="text" name="tb5" tabindex="5"><BR>
  17.         l    <input size=40 id=tb6 type="text" name="tb6" tabindex="6"><BR>
  18.         <input type="submit"/>
  19.     </form>
  20. </body>
Apr 12 '11 #1
2 1995
Dormilich
8,658 Expert Mod 8TB
your only chance is to use unique tabindices.
Apr 12 '11 #2
obviously,I can give unique tabindices. but if there is a scenario that there are multiple forms (suppose: 100 ),then what will happen..is there any logic through which only current form will continue and others will be unselectable?

Thanks for your reply
Apr 12 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Merav | last post by:
I'm running a java application from Eclipse. Looking at the system properties I get the following values: file.encoding = Cp1255 user.language = iw user.country = IL Than I'm building a jar...
4
by: jason | last post by:
I would appreciate some help on how to convert a database table into an html file via FSO and whether more seasoned asp programmers recommned this route. The main reason I am attempting to do this...
0
by: William Morris | last post by:
We have a number of clients using a web application. Each client sees a slightly different version of, say, a contact input page. As a simple example, Client #1 sees demographics, plus religious...
2
by: Gordon H. | last post by:
I'm trying to email a HTML link to a HTML file attached in the same message. I DO NOT want to have the attached HTML file displayed in the message, I just want a link in the email to the HTML file...
5
by: Victor | last post by:
Hi I need to open an html file from the file system and embed that html file within my main aspx form. I have 2 questions: 1) How do I open the html file? I tried the File.open(Path, mode) didnt...
2
by: Robert Diamond | last post by:
Hey guys (and girls ;)), I want to create some form data and submit it to the cgi script without having any (DOM) document loaded up. Is there a way in jscript to say... (probably something...
11
by: Jake j | last post by:
Yes, this is a simple and straightforward thing to do as long as the .js file doesn't use a function. When I try a script with a function in a js file I can't get it to work (though it works fine...
5
by: Codeman II | last post by:
Hi there, I am building a form where the user must upload a picture and fill in his details. Now I have a problem as all of this is on the same form. How will I be able to have the Browse...
6
by: lilcech | last post by:
How can i cobine my image with a html file so i only have one file. The image is used inside the html file so if i delete it or move it, then it wont show up in the html file. :)
1
by: sony.m.2007 | last post by:
Hi, I have a XML file like below <?xml version="1.0" encoding="utf-8" ?> <details> <detail> <description>name</description> <t1>10</t1> <t1>100</t1> <t1>1000</t1>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
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,...
0
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...

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.