I am trying to create a dashboard for myself and fellow employees to use. One of the features I'd like to add is a form that would allow us to add a Ticket number, hit "Submit" and then be forwarded to the desired Ticket. For this to work, I need the Ticket Number to be added to the end of the URL.

Code

```
<form id="tix" onsubmit="pulltix()">
    <input id="tix1" name="tix1" type="text">
    <input type="submit">
<form>

<script>

function pulltix() {

var action_src = $("tix1").val();

var urlLink = "https://www.ourtixsystem.com/tixnumber/";
var urlLink = urlLink + action_src;

srs.action = urlLink;

}

```

When I press submit, it is forwarding to our Ticket system but I get an error message. Reason being is that the following is added to the URL:

<https://www.ourticketingsystem.com/tixnumber/>**undefined?tix1=12345**

It looks like I have two issues here. One, I'm not defining something but I don't know what. And Two, "tix1=12345" can't be in the URL. 

Any help is appreciated.