Disable Input Type File in Mac Safari

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arupranjans
    New Member
    • Mar 2008
    • 1

    Disable Input Type File in Mac Safari

    Hi all,

    How can I disable a Input Type File Element in Mac Safari?

    I have written the below code & tested in Safari, Mac.

    [CODE=html]<form>
    <input type="file" name="oFile" onchange="" disabled = "disabled" />
    </form>[/CODE]

    But It is NOT working, Still I am able to select file by clicking "Choose File" Button.

    Can anyone please help me out?

    Thanks & Regards,
    Arup
    Last edited by eWish; Mar 29 '08, 03:55 AM. Reason: Added Code Tags
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    What is the purpose of disabling that input field? (disabled elements are read-only elements with the added restrictions that the values are not submitted with the form, the elements cannot receive focus, and the elements are skipped when navigating the document by tabbing)

    Ronald

    Comment

    Working...