阅读背景:

jQuery ' is(":visible ") '在Chrome中不工作

来源:互联网 
if ($("#makespan").is(":visible") == true) { 
    var make = $("#make").val(); 
}
else {
    var make = $("#othermake").val(); 
}

Make:<span id=makespan><select id=make></select><span id=othermakebutton class=txtbutton>Other?</span></span><span id=othermakespan style="display: none;"><input type=text name=othermake id=othermake>&nbsp;-&nbsp;<span id=othermakecancel class=txtbutton>Cancel</span></span>
if ($("#makespan").is(":visible") == true) { 
 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: