i have two inputs that i want an onchange function, when you input number of hours the NPCode should change to present,otherwi se it should be absent.that means if no hours is submitted then it should, by default be Absent. (myTotalHrs is input box while NpCode is a Dropdown.) P.S view attachment
Code:
$TotalHrs = array(
'name' => 'AddTotalHrs['. $rowcount .']',
'value' => '',
'maxlength' => '3',
'size' => '3',
);
$NPCode = array(
'name' => 'AddNPCode['. $rowcount .']',
'id' => 'NPCode' . $rowcount,
);
Comment