[wordpress插件] Clear Fields清除字段

wordpress 插件 文章 2020-03-24 16:00 562 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin will clear form fields on focus and refill the field if no input is given.

此插件将清除焦点上的表单字段,并在未提供任何输入的情况下重新填充该字段。

NOTE: This plugin depends on jQuery.

注意:此插件依赖jQuery。

If you include jQuery manually in your template, you can remove it because this plugin will make sure the latest version is called on every page.

如果您在模板中手动包含jQuery,则可以将其删除,因为此插件将确保在每个页面上都调用最新版本。

NOTE: If jQuery is already called correctly (with wp_enqueue_scripts) in another plugin, it will not be included again.

注意:如果在另一个插件中已经正确调用了jQuery(使用wp_enqueue_scripts),则不会再次包含它。

安装步骤

    1. Upload this plugin to your /wp-content/plugins directory.
    2. 将此插件上传到您的/ wp-content / plugins目录。

    3. Activate the plugin in your wp-admin panel.
    4. 在wp-admin面板中激活插件。

    5. Add class=”clrFld” to any input field or textarea that you wish to be affected.
    6. 将class =“ clrFld”添加到您希望受到影响的任何输入字段或文本区域。

    7. Add a title tag that reflects the value tag.

    8. 添加反映值标签的标题标签。

      Example: (input type=”text” name=”example_field” value=”Example Value” title=”Example Value”)

    9. 示例:(输入类型=“文本”名称=“示例字段”值=“示例值”标题=“示例值”)

下载地址
https://downloads.wordpress.org/plugin/clear-fields.1.2.zip
-EOF-

AI助手支持GPT4.0