I'm after a simple answer I think.

I have a text box called 'ref' on a page. 
When filled in and entered it takes the user to www.website.com/$ref.php.

I need their input to be uppercase to match the directory so I have added this code to change what they type.

```
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
$(document).ready(function() {
$("input").keyup(function() {
    var val = $(this).val()
    $(this).val(val.toUpperCase())
 })
})
</script>

```

This works great but it is applied to all text boxes on the page. 

How do I limit the script to text box 'ref' AND/OR is there a better way of achieving the same effect.

"if (textbox-name=ref) then apply script"

Thanks