TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ashok kumar
NA
89
36.1k
how to remove the css class of an asp:textbox using jquery
Jul 18 2013 4:48 AM
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.
Reply
Answers (
7
)
jquery how to make new div inheriting textbox value
my code is not working