onchange event to populate data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • viana2020
    New Member
    • Aug 2015
    • 14

    onchange event to populate data

    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,
    );
    Attached Files
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    you are aware the the posted code is PHP and hence does not respond to any user actions such as a change event?

    Comment

    Working...