hint in textbox in easier way.you may find better example for
that in internet but this one is good enough...
function MitsolReplyBoxFocus(caller) {
var id = caller.id;
if ((jQuery(".NameTextBox").val() == "name")) { jQuery(".NameTextBox").val(""); }
}
function MitsolReplyBoxBlur(caller) {
var id = caller.id;
if ((jQuery(".NameTextBox").val() == "")) { jQuery(".NameTextBox").val("name"); }
}
function pageLoad() {
jQuery(".NameTextBox").val("name");
};
in page -
<input type='text' id='NameTextBox1' class="NameTextBox" onfocus='MitsolReplyBoxFocus(this)'
onblur='MitsolReplyBoxBlur(this)' value="name" runat="server"/>
for my application in pageLoad function i did not put any condition because
every page load i am begining everything.you may put condition if
necessary.