What your describing is a placeholder and yes you can accomplish that using the following jQuery, 6 is your form number and 102 is the field number, you may need to replace $ with jQuery
$(document).ready(function() {
$('#input_6_102').attr('placeholder','email address');
});
I believe there are also a couple of placeholder plugins for gravity forms in the wordpress.org plugin repository that convert the field label into the placeholder. It's worth noting however that the placeholder attribute is not intended to replace the label rather it is intended to act as a guide to filling in the field in addition to the clue provided by the label, also the label is also required by screen readers for visitors with impaired vision.
Posted 11 years ago on Friday March 1, 2013 |
Permalink