Uncaught SyntaxError: Unexpected identifier
Can anyone please help me sort this out? I have a html form, I want to save data inside a list's <option> elements in order to execute a script when a use changes his selection. The code looks alright to me, but the browser always stops complaining a
Uncaught SyntaxError: Unexpected identifier error at line 60.
Line 60 is the following:
- $("option[value="HOUR"]").data({step:1,steptype:"h"});
And the HTML element it should address is:
- <select id=DIM_T>
- <option value="HOUR">Hour</option>
- <option value="HOURS3">3 Hours</option>
- <option value="DAY">Day</option>
- </select>