Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
7
Answers
how to remove the css class of an asp:textbox using jquery
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
ashok kumar
11y
4.7k
1
Reply
Hi all,
i need to remove the css class of my textbox on focus event:
jquery:
function searchBoxfocus () {
document.getElementById('<%= txtusername.ClientID%>').value = "";
$('#txtusername').removeClass('text-label');
$('#txtusername').addClass('glow');
}
<asp:TextBox ID="txtusername" runat="server" Text="USER NAME" onblur="searchBoxblur();" onfocus="searchBoxfocus();" CssClass="text-label" AutoPostBack="true"></asp:TextBox>
pls help me out the class "text-label " is not removing.
Post
Reset
Cancel
Answers (
7
)
Next Recommended Forum
jquery how to make new div inheriting textbox value
my code is not working