We are trying to implement a text area similar to below where in in a single sentence, there are multiple placeholders. We are using react for this. Is it possible to achieve below result using any controls?
I was able to find multiple resources where we can add "multiline" watermark/placeholders. But here, we need it at multiple places within the same line/paragraph.
2
Answers
Here I think we need to use more customizable approach, Bcz U know HTML doesn’t provide that support multiple placeholders.
I think it’s better if we can add two different divs for Text area and the Text Placeholder, then we can customize them separately also the design with CSS too.
Use Separate CSS
if you are referring to the textarea tag, then nested input tags is not possible because other than plain text, textarea doesn’t get the other tags, if you do so nested tags will act as strings.
Use parent div and add the text along with the input tags, it would be helpful.