Searching multiple times is a feature I want to incorporate into my project. However, after adding AJAX for filter search, the code utilizing document.getElementById("").value no longer works as expected.
$(document).ready(function() {
$('#job_no').change(function() {
$.ajax({
type: 'POST',
data: {JOB_NO: $(this).val()},
url: 'select.php',
success: function(data) {
$('#input_na').html(data);
}
});
return false;
});
});
<script type="text/javascript>document.getElementById('input_na').value = "<?php echo $_POST['input_na'];?>";</script>