Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

Disable Input Type File in Mac Safari

Question posted by: arupranjans (Newbie) on March 11th, 2008 07:41 AM
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: ( text )
  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
Last edited by eWish : March 29th, 2008 at 03:55 AM. Reason: Added Code Tags
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
ronverdonk's Avatar
ronverdonk
Moderator
4,138 Posts
March 28th, 2008
11:23 PM
#2

Re: Disable Input Type File in Mac Safari
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

Reply
Reply
Not the answer you were looking for? Post your question . . .
169,970 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Top HTML / CSS Forum Contributors