[jQuery] Re: input file and val()

2009-02-10 Thread Michael Lawson
Subject: [jQuery] Re: input file and val() Great idea Adrian, but you can´t change the type property ;) Well, you could also remove the element from the DOM and then add it again... On 10

[jQuery] Re: input file and val()

2009-02-10 Thread ezod
Great idea Adrian, but you can´t change the type property ;) Well, you could also remove the element from the DOM and then add it again... On 10 Feb., 11:48, Adrian Lynch wrote: > Maybe recreate the input and replace the existing one? > > Or turn it into text type, clear the value then back t

[jQuery] Re: input file and val()

2009-02-10 Thread Adrian Lynch
Maybe recreate the input and replace the existing one? Or turn it into text type, clear the value then back to file? Just guessing mind! Adrian On Feb 10, 8:45 am, ezod wrote: > Hi Michael, > > unfortunately that doesn´t work either (except FF ;)) > > On 9 Feb., 17:44, Michael Lawson wrote:

[jQuery] Re: input file and val()

2009-02-10 Thread ezod
Hi Michael, unfortunately that doesn´t work either (except FF ;)) On 9 Feb., 17:44, Michael Lawson wrote: > Have you tried using the attr() function? > $("#input1").attr("value","");) > > cheers > > Michael Lawson > Content Tools Developer, Global Solutions, ibm.com > Phone:  1-919-517-1568

[jQuery] Re: input file and val()

2009-02-10 Thread ezod
Hi brian, no - FF doesn´t allow to change the value into an other sting(of course for security reasons). Thank you though.

[jQuery] Re: input file and val()

2009-02-09 Thread Michael Lawson
Have you tried using the attr() function? $("#input1").attr("value","");) cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-919-517-1568 Tieline: 255-1568 E-mail: mjlaw...@us.ibm.com 'Examine my teachings critically, as a gold assayer would test gold. If you

[jQuery] Re: input file and val()

2009-02-09 Thread brian
File inputs have traditionally been difficult to modify, for security reasons. AFAIK, it shouldn't work in FF, either. Maybe it works only because you're emptying it. I wonder if that would work if you tried to set the value to some other string. On Mon, Feb 9, 2009 at 11:39 AM, ezod wrote: > >