For a fansite I am trying to implement an easy way to find id's for items.
Basically I want the dropdownfields, here named itemsid,axesid to appear depending on the selection on the itemtype dropdown. Initially itemsid, axeside should be hidden.
Expand|Select|Wrap|Line Numbers
- <form name="frmSelect">
- <select id="itemtype">
- <option value="itemsid">Items</option>
- <option value="axesid">Axe</option>
- </select>
- <p id="type-display">none selected</p>
- <select id="itemsid" name="itemsid">
- <option value="" selected="selected"></option>
- <option value="f">Gold</option>
- </select>
- <select id="axesid" name="axesid">
- <option value="" selected="selected"></option>
- <option value="2c672">Ancient Nord War Axe</option>
- </select>
- </form>
I tried looking at webexamples, but I understand too little of Javascript to adapt it to my needs or haven't found the "right" place for it. The stuff I work on atm looks like this.
Any help would be appreciated, thanks.