How can i change de cssclass of a textbox in runtime using javascript

  • Thread starter Thread starter Fernando Lopes
  • Start date Start date
F

Fernando Lopes

Hi.
I need to change de css of an asp.net textbox control.
So, on mouseover event, the class will be one, and on mouseout event it will
be another.
Something like:

TextBox1.Attributes.Add("onmouseover","css=x");
TextBox1.Attributes.Ass("onmouseout","css=y");

How can i do that?
Somebody have any idea?

Thanks

Fernando Lopes
 
TextBox1.Attributes.Add("onmouseover","this.className='x'");
TextBox1.Attributes.Ass("onmouseout","this.className='y'");

| Hi.
| I need to change de css of an asp.net textbox control.
| So, on mouseover event, the class will be one, and on mouseout event it
will
| be another.
| Something like:
|
| TextBox1.Attributes.Add("onmouseover","css=x");
| TextBox1.Attributes.Ass("onmouseout","css=y");
|
| How can i do that?
| Somebody have any idea?
|
| Thanks
|
| Fernando Lopes
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top