Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i have 6 textbox in a table
and i want to focus only on first 3 textbox and avoid/ignore focus on remain 3 textbox
i used tabindex -1 but its not worked in blank textbox in a
if textbox are filled then its worked..
how to do ?
Posted
Comments
Sergey Alexandrovich Kryukov 12-Jan-15 21:18pm    
Why? The Web browser user should be able to focus on whatever she/he wants.
—SA

1 solution

Please see my comment to the question. It's not clear why focusing should be avoided. You can disable some controls, if you need. Also, you should understand that the user of a Web application can enjoy one benefit over the desktop applications: any text on a Web page can be highlighted and copies. And this is good.

I can see one way of avoiding focusing: you can replace text boxes, or other input controls, with HTML text elements with matching styles: span, or paragraph, of div.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900