On my site I have a HTML form like the following:
<label>Name</lable>
<input name="username" id="username19" type="text" value="">
and let's say that the link in the address bar of the browser is:
I want to do following thing:
Pick the URL from the browser address bar and split it by "/". After choose the last word in this case it's "testing" and insert it to the form value with the ID "username19"
Could you help me to do this with Javascript or jQuery?