In the below script I added or operator to check the condition, Like if it is "ALL TCP" or "ALL UDP" item must get disabled, Please suggest me to modify the code.
<script type="text/javascript">
function chgJob(pThis, pRow)
{
if ((pThis.value != 'All TCP') || (pThis.value != 'All UDP'))
{
$x_disableItem('f02_' + pRow, false);
}
else
{
$x_disableItem('f02_' + pRow, true);
}
}
</script>
if ((pThis.value != 'All TCP') || (pThis.value != 'All UDP'))can also be written asif ((pThis.value == 'All TCP') && (pThis.value == 'All UDP'))andstatement will always return false, sincepThis.valuecan't possibly be'All TCP'and'All UDP'a the same time.||