Hello I have the following html and jquery that replaces text in the text paragraph. I am testing with the nvda screen reader and I want the text in #text to be read aloud when ever I push button one or two. What kind of aria roles / labels do I need to put on the elements to make that happen?
$('#btn').click(function(){
$('#text').text('This is message one');
});
$('#btn2').click(function(){
$('#text').text('This is message two');
});
<button id="btn">Read out text</button>
<button id="btn2">Read out text 2</button>
<p id="text"></p>