467,165 Members | 968 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,165 developers. It's quick & easy.

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.

Expand|Select|Wrap|Line Numbers
  1. <form>
  2. <input type="file" name="oFile"  onchange="" disabled = "disabled" />
  3. </form>
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
Mar 11 '08 #1
  • viewed: 3012
Share:
1 Reply
ronverdonk
Expert 4TB
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
Mar 28 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Mike | last post: by
chunk1978
reply views Thread by chunk1978 | last post: by
7 posts views Thread by Tim Slattery | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.