Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 login forms on one page. Problem with text field. Help!

Status
Not open for further replies.

suzisweet

Programmer
Joined
Aug 25, 2006
Messages
38
Location
GB
Hi all,

I have 2 login boxes on one single page.

They are both in divs. One of the divs is floated right.
When you click on the text entry field on the box to the left the cursur jumps to the text entry filed on the box to the right. This problem does not occur in IE 6 it occurs in firefox.


Can anyone help? reason why it does this and possible solutions would be great?

Thank you very much in advance!

suzi
 
Hi

[tt]id[/tt] means identifier. Identifiers must be unique. Do not use the same [tt]id[/tt] value for more than one element in the same document.

Feherke.
 
Hi

As addition note, to result your problem abit more was needed there. That more is not an error, just a strangeness.

The [tt]label[/tt] tag can be used in two ways :
Code:
<label for="[red]i[/red]">Text</label>
<input type="text" id="[red]i[/red]">

[gray]# or[/gray]

<label>Text
<input type="text">
</label>
None of the above would cause the problem. But you combined those two. ( Again, not an error, just abit unusual. ) That added that "abit more" which resulted in the strange effect.

Feherke.
 
Thank you very much for your help,

worked a treat!

ignore the formating etc..its just a test page to sort out that text field problem, which im glad to say is solved.
Using different id's now.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top