PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Adding a title attribute to a field

  1. I use a cool jQuery plugin called formtips to add inline text to my fields

    http://manuelboy.de/projekte/jquery-formtips/

    The info clears on focus and is not submitted along with the form. The plugin works by using the "title" of the field, for example:

    <input type="text" name="website" value="" id="website" size="40" title="website" />

    Right now I'm using the default text/clearit class tip that was mentioned on the forum before. That gets me halfway there, but the default text is still submitted to the form, which is not great.

    It would be great if I could somehow add a title to a field so that formtips can use it. Any ideas?

    Posted 8 years ago on Monday February 7, 2011 | Permalink
  2. You can try adding the actual title attributes with jQuery. You would probably have to define this before the other script is loaded for it to work properly.

    example:

    <script type="text/javascript">
    jQuery(document).ready(function() {
    jQuery("input#input_1_2").attr("title", "this is the title");
    });
    </script>
    Posted 8 years ago on Monday February 7, 2011 | Permalink
  3. Thanks, I'll give that a shot! That should definitely work for now, although it would be great to have something similar built into the plugin at some point so my clients can update it themselves. I understand you're considering adding inline labels, it's definitely something I'd be excited to see.

    Dalton

    Posted 8 years ago on Monday February 7, 2011 | Permalink
  4. Understood. We are planning quite a few enhancements to the existing form functionality. Additional field options & label options are on that list for sure. You'll probably start seeing some of those type enhancements in the 1.6+ releases.

    Posted 8 years ago on Monday February 7, 2011 | Permalink
  5. Fantastic, that worked perfectly. Thanks again for your help.

    Posted 8 years ago on Tuesday February 8, 2011 | Permalink
  6. Great. Thanks for the update.

    Posted 8 years ago on Tuesday February 8, 2011 | Permalink