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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -