By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,510 Members | 1,810 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,510 IT Pros & Developers. It's quick & easy.

onchange event to populate data

P: 14
i have two inputs that i want an onchange function, when you input number of hours the NPCode should change to present,otherwise 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

Expand|Select|Wrap|Line Numbers
  1. $TotalHrs = array(
  2.         'name'          => 'AddTotalHrs['. $rowcount .']',
  3.         'value'         => '',
  4.         'maxlength'     => '3',
  5.         'size'          => '3',
  6. );
  7. $NPCode = array(
  8.         'name'          => 'AddNPCode['. $rowcount .']',
  9.         'id'        => 'NPCode' . $rowcount,
  10. );
  11.  
Attached Images
File Type: jpg attn.jpg (38.0 KB, 125 views)
Dec 17 '15 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
you are aware the the posted code is PHP and hence does not respond to any user actions such as a change event?
Dec 18 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.