我有两个复选框,具体取决于用户点击的复选框,我需要调用其他函数,但是,我无法获取复选框标签值.
这是我的代码:
function getLabel(id)
{
return $("#"+id).next().text();
}
function BillStatus(){
console.log("its here");
var label=getLabel('checkBoxid1');
console.log(label);
if(label=="No") {
//some function to call here
}else{
//other function to call here
}
}