Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Who wants a easy friday star ? 1

Status
Not open for further replies.

simonchristieis

Programmer
Jan 10, 2002
1,144
GB
Anyone know the events handled by a file upload input element ?

<input type="file">

I want to show a label when they have selected the file to upload, any wanna help - it's friday and a quick google didn't help.

Does it support onchange ?
 
sorry - played squash at lunch, now really tired.

I want sommat like:

<input type="file" onchange="show()"/>

<span id="label" style="visibility:hidden;">oi oi saveloy</span>

function show()
{
label.style.visibility = "visible";
}

but wanted to know what events I could use with the file upload, can't find them on google.
 
cool - atsr for you.

any ideas where I can can a list of all events for elements online ?

I though w3schools had one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top