Add grayed-out text in the input text fields

回答済み

2 コメント

  • Dan Ross
    Community Moderator

    Hey Jeff,

     

    The attribute you're trying to add is called a placeholder

    try adding something like this to the $(document).ready(function() in your scripts.js file in the Guide code.

    $(".request_subject").attr("placeholder", "Type your subject here");

    if it's a custom text field you're trying to put the placeholder text in, you'll need the custom field ID from the Support interface, but i'm pretty sure you'd do something like this instead. 

    $(".request_custom_fields_22231180").attr("placeholder", "Type your data here");

    Let me know if that works for you.

    0
  • Jeff Friedman

    Hi Dan,

    This is exactly the information that I needed. Thanks for the quick reply and pointing me in the right direction. Best, -Jeff

    1

サインインしてコメントを残してください。

Powered by Zendesk