kalpesh says:
<
script
type
=
"text/javascript"
>
window.onload = function SetColorOnPageLoad() {
var defalutText = "enter your name";
var Textbox1 = document.getElementById("TextBox1");
if (Textbox1.value.length > 0 && Textbox1.value == defalutText) {
Textbox1.style.color = "#b1b1b1";
} else {
Textbox1.style.color = "black";
}
}
function WaterMark(txt, evt, msg) {
if (txt.value.length == 0 && evt.type == "blur") {
txt.style.color = "#b1b1b1";
txt.value = msg;
}
if (txt.value == msg && evt.type == "focus") {
txt.style.color = "black";
txt.value = "";
}
}
</
script
>
how I can use jevacode for 2 textbox in page?
I use 2 textbox==> textbox1 and textbox2 that use watermark for both of them I want in textbox1="enter yourname"
textbox2="enter your tell"
best regards
neda