Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

readonly textbox...?

Posted on 1999-07-14
3
Medium Priority
?
964 Views
Last Modified: 2010-05-18
Hello,
I just want to knoe if iti is possible to make a readonly textbox in HTML.
if possible how...?
for example...
--------
<TD NOWRAP WIDTH="48%" COLSPAN="12"><INPUT TYPE="readonly" NAME="usid" VALUE="abcde" SIZE=8 MAXLEN
GTH=8></TD>
--------
how can I make this textbox readonly...?

thanks...
0
Comment
Question by:sefa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Author Comment

by:sefa
ID: 1851945
in my question...
it is written wrongly
the right example
--------
<TD NOWRAP WIDTH="48%" COLSPAN="12"><INPUT TYPE="text" NAME="usid" VALUE="abcde" SIZE=8 MAXLEN
GTH=8></TD>
--------

sorry for mistake..!
0
 
LVL 11

Accepted Solution

by:
mouatts earned 280 total points
ID: 1851946
You can do
<INPUT TYPE="TEXT" NAME="mybox" VALUE="fred" READONLY>
but this works in IE4 only.

The alternative is to use a bit of javascript as follows:

<INPUT TYPE="TEXT" NAME="mybox" VALUE="fred" onFocus="this.blur();">

HTH
Steve

0
 
LVL 2

Author Comment

by:sefa
ID: 1851947
thanks..
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question