I have a drop down list that loads tags into my url string to filter a ditto call. I have it working fine with the onchange command but need to change it to a button now instead of onchange. But I can’t seem to get it to work at all on modx. Any help would be greatly appreciated!
The following code loads a long messed up url.
this is my code:
<FORM name="sort_by_Year">
<SELECT name="year" id="year" onchange="selected = true">
<option value="[~id~]&tags=2009" selected>2009</option>
<option value="[~id~]&tags=2008">2008</option>
<option value="[~id~]&tags=2007">2007</option>
</SELECT>
<BUTTON name="Go" onclick="location = this.options[this.selectedIndex].value">Go</BUTTON>
</form