Linux 软件免费装
Banner图

HTML5 Placeholder Polyfill

开发者 McGuive7
MIGHTYminnow
更新时间 2021年6月22日 02:31
捐献地址: 去捐款
PHP版本: 3.0 及以上
WordPress版本: 5.7.2
版权: GPLv2 or later
版权网址: 版权信息

标签

form jQuery html5 textarea input internet explorer placeholder polyfill placeholder.js

下载

1.0.0 1.1.0 1.2.0 0.1.0

详情介绍:

The HTML5 Placeholder Plugin simulates placeholder functionality for inputs and textareas, which is particularly handy in browsers that still need some work. A MIGHTYminnow plugin. Features How to use This plugin creates and uses a placeholder() jQuery function, and invokes it for inputs and textareas. This happens automatically as soon as you install it. If for some crazy reason you would like to invoke it on other elements aside from inputs and textareas, you can do so with you own jQuery, like so: jQuery('yourElement').placeholder()

安装:

Manual Installation
  1. Upload the entire /html5-placeholder-polyfill directory to the /wp-content/plugins/ directory.
  2. Activate HTML5 Placeholder Polyfill through the 'Plugins' menu in WordPress.
  3. All set, no additional configuration needed. Placeholders will now work on inputs and textareas in all browsers.

屏幕截图:

  • Before installing the plugin (IE8, IE9, etc.)
  • After installing the plugin

升级注意事项:

= 1.2.0
  • Functionality added to admin and login screen.
  • Added support for SCRIPT_DEBUG (non-minified jQuery is included if SCRIPT_DEBUG is set to true).
1.1.0
  • Removed extra blank lines at end of main php file causing the following error: "The plugin generated 2 characters of unexpected output during activation. If you notice �headers already sent� messages, problems with syndication feeds or other issues, try deactivating or removing this plugin."
1.0.0
  • No real need to upgrade, just switching to non-beta version number
0.1.0 First Release

常见问题:

How does this plugin work?

This plugin implements an elegant jQuery script written by Mathias Bynens to simulate proper placeholder functionality in browsers that don't natively support it. The current version of the plugin is based on the following version of Mathias' code: https://github.com/mathiasbynens/jquery-placeholder/blob/fdd8d253edc8708fbe5d3ecf9a17a919713a3733/jquery.placeholder.js. It may be updated in the future if any improvements are made on his end.

I need to modify the plugin behavior, what should I do?

  1. Write to me with your request/suggestion - maybe the plugin should be improved for all.
  2. If you'd rather have at it yourself, more power to you. The plugin utilizes jQuery that has been minified (html5-placeholder-polyfill.min.js), but the unminified version is also included (html5-placeholder-polyfill.js). You can tinker with the unminified version, minify it, and copy it into html5-placeholder-polyfill.min.js.

更新日志:

= 1.2.0 1.1.0 1.0.0 0.1.0