为了使我们的网站WCAG 2.0就绪,我们所有的按钮都必须具有价值。但是,我们的按钮之一是通过javascript进行设置,我不确定该怎么做。
这是我认为需要更改的代码:
te +“ IE”:“”,角色:“对话框”,tabindex:“-1”})。hide(),g = o(ae,“ Overlay”)。hide(),L = t([ o(ae,“ LoadingOverlay”)[0],o(ae,“ LoadingGraphic”)[0]]),y = o(ae,“ Wrapper”),x = o(ae,“ Content”)。append( S = o(ae,“ Title”),M = o(ae,“ Current”),K = t('')。attr({id:te +“ Previous”}),I = t('')。 attr({id:te +“ Next”}),R = o(“ button”,“ Slideshow”),L),P = t('')。attr({id:te +“ Close”}),y。 append(o(ae).append(o(ae,“ TopLeft”),b = o(ae,“ TopCenter”),o(ae,“ TopRight”))),o(ae,!1,“ clear:left “).append(T = o(ae,” MiddleLeft“),x,C = o(ae,” MiddleRight“)),o(ae,!1,” clear:left“)。append(o(ae, “ BottomLeft”),k = o(ae,“ BottomCenter”),o(ae,“ BottomRight”)))。find(“ div div”)。css({“ float”:“ left”}),F = o(ae,!1,“位置:绝对;宽度:9999px;可见性:隐藏;显示:无”),
任何帮助将不胜感激!我对JS毫无头绪,对Google毫无帮助。
答案 0 :(得分:0)
放入
.attr('value', 'Your Text')
在那个链条上的某个地方。
或尝试
.attr({ value: 'Your Text' })
或尝试为.attr({id:te +“ Close”}})添加值
.attr({id:te+"Close", value: 'Your text'})