PDA

View Full Version : Change the 'enctype' in the form tag


ShMiL
08-28-2002, 05:56 AM
I need to change the enctype in the form tag from the default to the "multipart/form-data" when someone click on button A.
I tried:
onClick="this.form.enctype='multipart/form-data';"

But it doesn't work, does anyone have a good idea for me?
thanks.

glenngv
08-28-2002, 06:12 AM
onClick="this.form.encoding='multipart/form-data';"

ShMiL
08-28-2002, 11:11 AM
Great!
Thanks alot!