A quick-and-dirty jQuery plugin that hides the labels of the selected inputs and uses the contained text as a placeholder. Specifically designed for Gravity Forms.
This plugin is designed for text-style inputs and textareas only. To target all support Gravity Forms inputs, use the following:
$('.gfield input[type=text],.gfield input[type=email],.gfield input[type=tel],.gfield input[type=url],.gfield textarea').gravityPlaceholders();
To target only standard text inputs:
$('.gfield input[type=text]').gravityPlaceholders();
For more information on targeting specific inputs, refer to the Gravity Forms Documentation.
- Added better placeholders for complex inputs
- Verified support for Gravity Forms through v1.7.6.10
- Added native placeholder support with a
value
fallback for older browsers
- Complete overhaul of the plugin structure
- Initial release
Jason Lengstorf
Copyright (c) 2012 Jason Lengstorf
Licensed under the MIT License (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the license.txt file, or at:
http://opensource.org/licenses/mit-license.php
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.