<select id="equipped" name="attr_equipped" width="30px"> <option value="0" selected>Slot 1</option> <option value="1">Slot 2</span></option> <option value="2">Slot 3</span></option> </select> I know the equipped attribute definitely reflects whatever is selected since I have a span that displays it to test, but I can't seem to use it for: @{inv_@{equipped}} It displays the following error: TypeError: Cannot read property 'substring' of undefined and No attribute was found