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
Dinkar Chavhan
NA
1.7k
999.8k
Jquery
Jul 20 2012 8:25 AM
Hi,
In webform i am using jquery watermarkText that is coming ok.but when i am validating along with watermarktext that not happening can someone tell me solution pls follo is my code
<script type="text/javascript">
$(function () {
$(".water").each(function () {
$tb = $(this);
if ($tb.val() != this.title) {
$tb.removeClass("water");
}
});
$(".water").focus(function () {
$tb = $(this);
if ($tb.val() == this.title) {
$tb.val("");
$tb.removeClass("water");
}
});
$(".water").blur(function () {
$tb = $(this);
if ($.trim($tb.val()) == "") {
$tb.val(this.title);
$tb.addClass("water");
}
});
});
</script>
Jquery code:
$('#form1').validate({
rules: {
"<%=txtUserName.UniqueID %>": {
required: true,
},
messages: {
"<%=txtUserName.UniqueID %>": {
required: "<span class='errorArrow'float:'left' padding-right:10px;</span>"
}
Reply
Answers (
0
)
What is "App.path" in C#.net ?
sql upate command