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

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

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -