
內容簡介
這個外掛可以讓不支援 HTML5 的瀏覽器(包括 Internet Explorer 6)使用 placeholder 屬性。這個外掛只需要啟用 James Allardice 的 placeholders.js 腳本。使用者無需進行進一步的配置。對於 HTML 輸入元素,使用 placeholder 屬性並添加值,當使用者輸入該欄位時,這個值會被移除。這個腳本大小為 4KB,設置在頁面底部載入,不需要其他函式庫依賴。啟用外掛就可以使用,無需進一步配置。
外掛標籤
開發者團隊
原文外掛簡介
This plugin adds support for placeholder text in browsers that don’t support this HTML5 feature including Internet Explorer 6.
The plugin just activates the placeholders.js script by James Allardice http://jamesallardice.github.io/Placeholders.js/
There is no further configuration required.
For HTML input elements use the placeholder attribute and add a value, this value is removed when a user inputs the field. http://coolestguidesontheplanet.com/add-a-label-into-a-text-input-field-in-a-html-form/#html5
The script is 4KB and is set to load in the footer and has no library dependencies.
Usage
Just activate the plugin which loads the script, their is no further configuration.
