I am trying to change the input field value dynamically when the user pick the options from my dropdown menu. I have tried this code but have no luck. I was wondering if som
The code below should work. I modified the in the html to be formatted correctly as well as changed
$('input[name="project"]').val()="Good Fish";
to $('input[name="project"]').val("Good Fish");
$(document).ready(function(){
$('select[name="job_number"]').change(function() {
$('input[name="project"]').val("Good Fish");
});
});