jshint gives the error:
Line 362: document.forms['upload_form'].submit();
['upload_form'] is better written in dot notation.
for this line
document.forms['upload_form'].submit();
What dot notation…are they talking about accessing the object memmber via the ‘.’ operator?
Yes; what other dot notation is there?
As you continue to ask jshint-related questions, bear in mind that some of the checks it performs are preferential: it’s more important to remain consistent, and you can configure it to better-conform to your own particular style.
Also, bear in mind that for forms with array-notation names (
tag[]or whatever), you’d need to use array notation anyway–I’d rather see the use of a single means of accessing form properties.