I’ve got a form that I’d like to fill with Javascript. It works!
But when I submit the form, it doesn’t validate, and it says that field is null.
If I fill in the form manually, it works just fine?
The form in question is here
EDIT
Here’s the JS for the form
$('#old').keyup(function () {
if(this.value > 49){
$('#new').val(this.value - 49);
$('#new').attr('disabled', 'disabled');
} else {
$('#new').val('0');
$('#new').removeAttr('disabled');
}
});
Disabled fields don’t get submitted by the browser. If you’re looking for their values in PHP, they won’t exist.