Ability to set the textarea id attribute
See original GitHub issueIt would be nice to be able to set the id
of the generated textarea, like we can for the name
and others. I need this to be able to get a <label for='myid'>...</label>
element to auto focus onto the textarea when clicked.
Great little code editor BTW. It’s very useful to have a lightweight option for React.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top Results From Across the Web
HTML textarea id Attribute - Dofactory
The id attribute assigns an identifier to the <textarea> element. The id allows JavaScript to easily access the <textarea> element. It is also...
Read more >The Textarea element - HTML: HyperText Markup Language
An id attribute to allow the <textarea> to be associated with a <label> element for accessibility purposes; A name attribute to set the...
Read more >Ability to set the textarea id attribute · Issue #9 - GitHub
The textarea element has it built-in but I can't seen to be able to set it though simple code editor.
Read more >On the textarea element, add an id attribute and set the value ...
On the textarea element, add an id attribute and set the value to "comment". <!DOCTYPE html> <html> <head> <meta charset="utf-8"> ...
Read more >How to change the Content of a textarea using JavaScript
Method 2: This method uses the id attribute of the textarea with innerHTML property to change the content of <textarea> element. JavaScript code ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@davidjamesstone Okies! I sent a PR adding a prop for that. Lemme know if it works for you.
Actually this prop isn’t released. I just added placeholder prop. Will support id with render props later.