Fileselect control

Fileselect control

I have created a textbox control. Now I want to create a fileselect control and use the textbox control to display the file selected. How do I do that?
 
Basically , I should be able to enter the input in the textbox or select the file. I want to use the same area used by the id orignum to display the file selected?
 
 <label for="Orig Number">Orig Number</label>
 <input id="orignum" name="orignum" />
<input type="file" name="filesToUpload" id="filesToUpload">
 
Both the controls appear inside the jquery tab page.
 
Please advise how I can accomplish this?
 
Thanks.