Php 提交时清除html占位符

Php 提交时清除html占位符,php,jquery,html,Php,Jquery,Html,我使用HTML5中提供的占位符属性来获得占位符效果 <input id="search" class="hasPlaceholder" type="text" placeholder="Personal Trainer" value="" name="search"> 但在提交后,它仍然会给出占位符值。当我将你问题的最后一部分(请建议我在哪里可以获得excel格式的所有职业/行业列表)输入谷歌时,我出现在第1页。它与这个电子表格有着密切的联系,其中包含了您正在寻找的确切内容。我喜

我使用HTML5中提供的占位符属性来获得占位符效果

<input id="search" class="hasPlaceholder" type="text" placeholder="Personal Trainer" 
value="" name="search">

但在提交后,它仍然会给出占位符值。

当我将你问题的最后一部分(请建议我在哪里可以获得excel格式的所有职业/行业列表)输入谷歌时,我出现在第1页。它与这个电子表格有着密切的联系,其中包含了您正在寻找的确切内容。我喜欢帮助别人,但说真的,先做点调查和谷歌搜索

11-0000             Management Occupations
    11-1000         Top Executives
        11-1010     Chief Executives
            11-1011 Chief Executives
        11-1020     General and Operations Managers
            11-1021 General and Operations Managers
        11-1030     Legislators
            11-1031 Legislators

示例数据。

我不认为这是提出这样一个“问题”的合适地方。虽然这确实是一个问题,但我同意不适合这个论坛。如果你使用lmgtfy,我会+1:)只是开玩笑,我+1'edanyways@quetzalcoatl所以不允许lmgtfy链接:P
11-0000             Management Occupations
    11-1000         Top Executives
        11-1010     Chief Executives
            11-1011 Chief Executives
        11-1020     General and Operations Managers
            11-1021 General and Operations Managers
        11-1030     Legislators
            11-1031 Legislators