I have two fields in my form. One is populated from the site and one is user input. When the field is populated from the site, the field will be disabled, and when the user inputs it should be enabled. I am trying to pass a parameter that changes the value in either case. This doesn't seem to work. Any help will be greatly appreciated. Only one input will be visible in the page.
<input type="text" id="test" name="test" value="" style="text-transform: uppercase;" onchange="updatetest()" enabledisable="disabled" maxlength="32">
or
<input type="text" id="test" name="test" value="" style="text-transform: uppercase;" onchange="updatetest()" enabledisable="disabled" maxlength="32">
function updatetest () {
$("#test").prop( enabledisable, false );
}