By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,724 Members | 1,655 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,724 IT Pros & Developers. It's quick & easy.

Disable Input Type File in Mac Safari

P: 1
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
Share this Question
Share on Google+
1 Reply


ronverdonk
Expert 2.5K+
P: 4,258
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.