IE compatibility note-opacity

if we want to use label pic to cover input checkbox.
we use to define of z-index the hierarchy in firefox and chrome,but IE cannot , we use IE practical CSS Paramter to set transparency, but firefox and chrome cannot use.
such as:
.custom-checkbox input {
filter:alpha(opacity=0);//define for IE
display: block;//input checkbox show
z-index: -1;//define for firefox and chrome
}
JSP
<div class="cM-accCheckbox">
<input type="checkbox" name="mailNumbers" id="c_1" value="MM4342">
<label class="oddrow" for="c_1"> </label>
</div>

js
function jpcMessageCtr_inboxCheckEvent(_this) {
var checkAll = true;
if (_this.checked) {
$(_this).next("label").addClass("checked");
$(_this).attr("checked", true);

} else {
if($(_this).next("label").hasClass("checked")){
$(_this).next("label").removeClass("checked");
}
$(_this).attr("checked", false);
}
$(".cA-msgctr-displayPagianationMessageContent").find(":checkbox[name='mailNumbers']").each(function() {
if (this.checked) {
} else {
checkAll = false;
}
});
if (checkAll) {
$(".cA-msgctr-displayPagianationMessageContent").find("#CHKBOXALL-1").attr("checked", true);
$(".cA-msgctr-displayPagianationMessageContent").find("#CHKBOXALL-1").next("label").addClass("checked");
} else {
$(".cA-msgctr-displayPagianationMessageContent").find("#CHKBOXALL-1").attr("checked", false);
if($(".cA-msgctr-displayPagianationMessageContent").find("#CHKBOXALL-1").next("label").hasClass("checked")){
$(".cA-msgctr-displayPagianationMessageContent").find("#CHKBOXALL-1").next("label").removeClass("checked");
}
}
}

function jpcMessageCtr_inboxCheckEventBind() {
$(".cA-msgctr-displayPagianationMessageContent").find(":checkbox[name='mailNumbers']").each(
function(index) {
var self = this;
$(this).bind("click", function() {
jpcMessageCtr_inboxCheckEvent(self);
});
});
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值