HTML5 Placeholder jQuery Plugin is a jQuery plugin that enables HTML5 placeholder behavior for browsers that aren’t trying hard enough yet. You’ll still be able to use jQuery.val() to get and set the input values. If the element is currently showing a placeholder, .val() will return an empty string instead of the placeholder text, just like it does in browsers with a native @placeholder implementation. Calling .val('') to set an element’s value to the empty string will result in the placeholder text (re)appearing. The plugin automatically adds class="placeholder" to the elements that are currently showing their placeholder text. You can use this to style placeholder text differently.
Features
- You can install jquery-placeholder by using Bower
- Requires jQuery 1.6+
- Works in all A-grade browsers, including IE6
- Automatically checks if the browser natively supports the HTML5 placeholder attribute for input and textarea elements
- Caches the results of its two feature tests in jQuery.fn.placeholder.input and jQuery.fn.placeholder.textarea
- Makes sure it never causes duplicate IDs in your DOM
Categories
HTML/XHTMLLicense
MIT LicenseFollow HTML5 Placeholder jQuery Plugin
Other Useful Business Software
Go From AI Idea to AI App Fast
Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of HTML5 Placeholder jQuery Plugin!