With [ code ] and a proper indentation you would have seen this
Code:
$(document).ready(function() {
if('${actionBean.networkArea.ipemanagertype.ipemanagertypeenum}' != 'other'){
if('${actionBean.channel.networkarea.networksetup.startTimeCurrent}'){
$("input[id^=channelPid_]").each(
function(){
$(this).parent().find('div[class=errorMsg]').remove();
$(this).removeClass('error');
$(this).val("")
.css("background-color", "#dcdcdc")
.attr("disabled", "disabled");
});}
else{$("input[id^=channelPid_]")
.attr("disabled", "");
}
} else {
$("input[id^=channelPid_]").each(
function(){
$(this).parent().find('div[class=errorMsg]').remove();
$(this).removeClass('error');
$(this).val("")
.css("background-color", "#dcdcdc")
.attr("disabled", "disabled");
}
);
}
The closing parentheses for the very first line are missing. This should be correct
Code:
$(document).ready(function() {
if('${actionBean.networkArea.ipemanagertype.ipemanagertypeenum}' != 'other'){
if('${actionBean.channel.networkarea.networksetup.startTimeCurrent}'){
$("input[id^=channelPid_]").each(
function(){
$(this).parent().find('div[class=errorMsg]').remove();
$(this).removeClass('error');
$(this).val("")
.css("background-color", "#dcdcdc")
.attr("disabled", "disabled");
});}
else{$("input[id^=channelPid_]")
.attr("disabled", "");
}
} else {
$("input[id^=channelPid_]").each(
function(){
$(this).parent().find('div[class=errorMsg]').remove();
$(this).removeClass('error');
$(this).val("")
.css("background-color", "#dcdcdc")
.attr("disabled", "disabled");
}
);
}
});