You must fix the tag first <script>before
<script type="text/javascript">
Next, if you want to use numeric indices, try declaring them as a string:
var tids = {
'308': 1,
'312': 1,
'313': 1,
'314': 1
};
Please note, however, that you cannot reference them in object notation (i.e. tids.308). You can simply use arrays instead of objects:
source
share