PHP - Text Field value based on selected value from List Box -


may know how can setting text field's value according selected value list box?

table in database

html form

for example: if choose "dip" list box text field display "diploma in information technology (programming)" automatically since setting text field became disabled.

p/s: list box function done. need guides settle text field

var code = $('#code').val(); $.ajax({      type: "post",      data: {code: code},      url: 'get_name_list.php',      success: function(data) {         $('#text_field').val(data);      } 

in get_name_list.php make query fetch program_name , return value. can code $_post['code']. , in success need set value textbox.


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -