role alert is read by JAWS 2020.2001.70 in chrome, firefox but its not reading in Microsoft IE11 and Edge.
The same is also working with mac voiceover in chrome and firefox.
We need to write "show" in the text input and "Role is working" will be automatically read due to role=alert (without tab out)
$(".container > input").keyup(function(){
if(event.target.value === "show"){
$(".dl").removeClass("dl_hide");
}
});
.dl_hide{
display : none;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="container">
<input type="text" name="your_name" value="" />
<div class="dl dl_hide" role="alert" tabindex="0">
Role is working
</div>
</div>