How to use a class selector for aria-labelledby?
<p>I'm trying to create an accessible input field like so:</p>

<pre><code>&lt;input type="text" role="textbox" aria-labelledby="helper-msg-value"&gt;
&lt;p id="helper-msg-value"&gt;You must enter a value&lt;/p&gt;
</code></pre>

<p>Is there any way to use a class as the selector for the <code>aria-labelledby</code> attribute instead of an ID? So something like this:</p>

<pre><code>&lt;input type="text" role="textbox" aria-labelledby=".helper-msg-value"&gt;
&lt;p class="helper-msg-value"&gt;You must enter a value&lt;/p&gt;
</code></pre>