Suppose this the html...
<input type="text" class="MemberId" />
<input type="password" class="Password" />
<input type="button" class="btnLogin" value="Login" />
******Add latest Jquery library here************
$(function () {
$('.memberLoginForm .MemberId').val('Member Id');
$('.memberLoginForm .Password').val('Password');
$('.memberLoginForm .MemberId').focus(function () {
if ($(this).val() == 'Member Id') {
$(this).val('');
}
});
$('.memberLoginForm .MemberId').blur(function () {
if ($(this).val() == '') {
$(this).val('Member Id');
}
});
$('.memberLoginForm .Password').focus(function () {
if ($(this).val() == 'Password') {
$(this).val('');
}
});
$('.memberLoginForm .Password').blur(function () {
if ($(this).val() == '') {
$(this).val('Password');
}
});
});
This will solve your problem..