$("#chargePerson").focus(function() {
if ($(this).val() == "请输入负责人") {
$(this).val("");
}
}).blur(function() {
if ($(this).val() == "") {
$(this).val("请输入负责人");
}
});
$("#chargePerson").focus(function() {
if ($(this).val() == "请输入负责人") {
$(this).val("");
}
}).blur(function() {
if ($(this).val() == "") {
$(this).val("请输入负责人");
}
});
转载于:https://my.oschina.net/fxfly/blog/61506