Enable input after selecting a select with jQuery

Hi, I’m trying to enable or activate an input after selecting data from a select, I have everything declared, but it doesn’t work for me

Choose:

JS:

$(document).ready(function() { $(‘#academic_grade’).change(function(e) { if ($(this).val() === “4”) { $(‘#input’ ).prop(“disabled”, true); } else { $(‘#input’).prop(“disabled”, false); } }) });

See also  How to get the current year in Javascript?
Loading Facebook Comments ...
Loading Disqus Comments ...