I have this code:

```
<script>
    onKeyUp = function (src) {
        if (this.event.keyCode !== 13) {
            return;
        }

        var queryStringArray = [], queryString;
        var selectedElements = src.selectedOptions;
        for(var i = 0 ; i < selectedElements.length ; i++) {
            queryStringArray.push(selectedElements[i].getAttribute('value'));
        }
        queryString = queryStringArray.join('+');
        window.location.assign('http://example.co.il/tag/' + queryString);
    }
</script>

```

And works well with this:

```
<select data-placeholder="???" class="chosen-select" multiple style="width:350px;" tabindex="4" onkeyup="onKeyUp(this)">
    <option value=""></option>
    <option value="A">A</option>
    <option value="B">B</option>
    <option value="C">C</option>
    <option value="D">D</option>
</select>

```

I try to put him in my original file and then it does not work ..

**In my original file has jquery**

**The function did not run**

What to do?

Full Code: <http://pastebin.com/PLHniVpr>