Jump to content


Photo

add text to file input tag


  • Please log in to reply
No replies to this topic

#1 Hokus

Hokus
  • Members
  • PipPip
  • Member
  • 23 posts
  • LocationAlameda, CA, USA

Posted 02 September 2006 - 04:53 AM

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 not work:

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

Thanks!




[!--sizeo:2--][span style="font-size:10pt;line-height:100%"][!--/sizeo--][!--fonto:Arial--][span style="font-family:Arial"][!--/fonto--][!--coloro:blue--][span style="color:blue"][!--/coloro--]"Experience is a wonderful thing. It enables you to recognize a mistake when you make it again".
[!--sizec--][/span][!--/sizec--][!--colorc--][/span][!--/colorc--][!--fontc--][/span][!--/fontc--]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users