Results 1 to 6 of 6

Thread: input type file default text

  1. #1

    Thread Starter
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196

    input type file default text

    When using the input type=file is it possible to put some
    default value into the text part of that element?

    Also when mulitple items are chosen in a select they are
    highlighted in dark blue is it possible to change this colour?
    And if not a reason would be nice.

    thanks in advance.

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    You can set the value attribute on on the input element, although I think many browsers don't allow it for security reasons.

    I would have thought you could use a CSS pseudo-class like active and the background property to acheive what you wanted with the select thing, but I can't seem to get it to work in any browser.
    Last edited by Rick Bull; Nov 7th, 2002 at 05:57 AM.

  3. #3

    Thread Starter
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    Cheers Rick, I pretty much suspected that both of these
    were going to be no gos.
    They were just part of a wish list and not particularly important.
    I consdered it a pretty safe bet that someone else would have
    tried the same thing (with more time to research) and come up
    with a definitive yes/no

  4. #4
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    That's the benifit of not-having a job I definately would have though that you could change the selected option colour, at least in mozilla, but maybe not.

  5. #5

    Thread Starter
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    Another benefit is you don't have somone saying:
    "I think I'd prefer that in a cloudless summer sky light blue colour"
    And your thinking:
    It's only a bloody combo box it's the same colour everywhere you go 'cept Java Swing.
    While saying:
    hmm, yes I'll look into that.

  6. #6
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Hehe, maybe you should quit

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width