I’m trying to get this code to work correctly for a school project, these two lines keeps throwing an error i can seem to get fixed. The first one is linked to a drop down menu i made with JavaScript, and it works fine.
<li id="select"><label for="aptType">Type:</label>
This is the error I’m getting…
I was reading on here that i need to have id=”” and that was the reason for the error, but i have id in both lines.
Error: The for attribute of the label element must refer to a form control.
From line 33, column 10; to line 33, column 45
you have given wrong id for textarea please check it once again.
it should be like this.
insted of “commments” it should be like “comments”.