Jquery 焦点和覆盖

Jquery 焦点和覆盖,jquery,focus,Jquery,Focus,我有一个输入字段,其中有一个条目“输入年龄”。 我想将焦点设置到此字段,并使用写入此字段的第一个字母擦除帮助内容 $("#enter_age").val('Enter Age').focus(); ??? 用户不应承担删除帮助字段的任务 $("#enter_age").value('Enter Age').select().focus(); 这管用

我有一个输入字段,其中有一个条目“输入年龄”。 我想将焦点设置到此字段,并使用写入此字段的第一个字母擦除帮助内容

    $("#enter_age").val('Enter Age').focus();
    ???
用户不应承担删除帮助字段的任务

$("#enter_age").value('Enter Age').select().focus();
这管用