Question: Hi i have a textbox which i am using as a counter to show how many characters are still allowed in another textbox. I have made it read only and its background transparent so that you cant tell it is a select box. The only problem is you can still click on it or tab to it. Is there a way to do this so it appears just like normal text and people cant click on it or tab to it?

Answer: 
Just replace the `input` element with a `span` element or some other non-input element. This requires a trivial change to your JavaScript; you would assign to the `innerHTML` property of the element rather than `value`. Then the content will appear as normal text, and you can style it as desired.
you need some style with css and some trick with Jquery.

**CSS**

```
.readonly{
    border:none;
    background:#aaa;    
}​

```

**Jquery**

```
 $(".readonly").focus(function(){
       $(this).blur();
});​

```

now just add `class="readonly"` to your textbox.

```
<asp:TextBox cssClass="readonly" />

```

check demo [here](http://jsfiddle.net/QX9jc/1/) .