Jump to content

Archived

This topic is now archived and is closed to further replies.

Hokus

add text to file input tag

Recommended Posts

Hello,

I need to add some text to a html FILE input tag when a page loads. Since the "value" attribute does not work on FILE inputs, is there perhaps a workaround with JS?

e.g. this does [b]not[/b] work:

<input type="FILE" value="some text" />

Thanks!



Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.