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?
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
Post a Comment