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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -