When use e && e.preventDefault()
, JsLint will throw the following error.
Expected an assignment or function call and instead saw an expression.
How can I change the code to pass JsLint, but still keep the code simple?
When use e && e.preventDefault()
, JsLint will throw the following error.
Expected an assignment or function call and instead saw an expression.
How can I change the code to pass JsLint, but still keep the code simple?