hi,


How can i apply class to textbox on its change event.

can i apply...?


please help me.


jack

Recommended Answers

All 3 Replies

see code below. Notice that there is a leading space:

<input type="text" onchange="this.className+=' YourNewClassNameHere'" value="" />

Thanks Its Perfectly work..

Glad to help.

Regards,
Hielo

PS: Don't forget to mark the thread as solved!

commented: thanks for help +1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.