屏幕阅读器不自动读取模型窗口

时间:2016-03-13 23:07:03

标签: html jsp wai-aria screen-readers

我正在尝试在JSP模型窗口上不被屏幕阅读器自动读取。此模态窗口是第二个模态窗口,第一个模态窗口自动读取。但不是第二个模型窗口。

以下是代码:

<div id=second-popup style="display:none" aria-live="polite" role="dialog"> 

<input type="hidden" id="none-label" value="nonetext"/>
<jsp:include page="somepagelinkhere.jsp" flush="true"/>
<html:hidden property="intialized"/>
<div class="div1">
<div class="div2">
<div class="div3">
<div class="div4">
<html:select styleId="" property="">
<html:options collection="" property="">
</html:select>
<html:select styleId="" property="">
<html:options collection="" property="">
</html:select>
</div>
<c:set var="var1"><bean:message  /></c:set>
<input type="hidden" value="" id="removelabel">


<div class="div5">
<form:label property="" >
<select name="country" id="countrylabel" class="country" >
<option value="">${countrieslist}</option>
<c:forEach var="" items="">
<option value=""> ${countrieslists}</option>
</forEach> 
</div>

<div id="city" class="citylist">
<form:label property="">
<select name="" id="" class="">
<option value=""></options>
</select>
</div>


</div>
</div>
</div>

,showhide: function(){ 
$("button").click(function(e){
e.preventDefault;
$("button").attr("aria-hidden","true");
$("second-popup").attr("style","display:block");
$("second-popup").attr("aria-hidden","false");
});
}


$(document).ready(function(){
$("first-popup").attr("tabindex",0);
$("first-popup").attr("tabindex",0);
$("Second-popup").focus();
});

在上面的代码中,第一个div包含第二个模态窗口内容代码蓝图。我需要通过NVDA屏幕阅读器自动读取 我尝试将role="dialog" aria=labelledby="id" aria-describedby=""放在父div上,但屏幕阅读器仍无法自动阅读。

0 个答案:

没有答案
相关问题