input tt-hint #21
-
What is the purpose of the second input field with class tt-hint? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello Simon, A second input field (read-only) is used to display a hint within the original input field. For example, head to https://typeahead.digitalfortress.tech/, and try typing "g" in the first input box that you see. As soon as you do that, you should see 3 suggestions and within the input field, you will also see the letters old which are a bit greyed out, like a placeholder. This placeholder value comes from the second input field with class typeahead({
input: ...,
source: {
...
},
hint: false, // disables the 2nd input field
}); Hope that answers your question. Good day! |
Beta Was this translation helpful? Give feedback.
Hello Simon,
A second input field (read-only) is used to display a hint within the original input field. For example, head to https://typeahead.digitalfortress.tech/, and try typing "g" in the first input box that you see. As soon as you do that, you should see 3 suggestions and within the input field, you will also see the letters old which are a bit greyed out, like a placeholder. This placeholder value comes from the second input field with class
tt-hint
. If you hit the Tab key, it autocompletes your input with the hint value. Using this hint is optional and you can disable it