Is there any way to get the visible label name and the customized name either by using aria-label or by using aria-labelledby or any other attribute
For example the below code is saying:
<div>
<div id="shankar">Name</div>
<input type="text" aria-labelledby="shankar"/>
</div>
<div>
<div id="set-address">Address</div>
<input type="text" aria-label="set-address"/>
</div>
reader:
- Name edit text(for first input box)
- Set-address edit text(for 2nd input box)
I have gone through this question: Difference between aria-label and aria-labelledby
What should I do here to get the message as:- Set-address for Address edit text?
which attribute should I use here?