JQuery and form attributes change in IE

Posted by bounce on Stack Overflow See other posts from Stack Overflow or by bounce
Published on 2010-03-25T09:20:41Z Indexed on 2010/03/25 9:23 UTC
Read the original article Hit count: 342

Filed under:
|

Hi,

I want to change form attributes with JQuery. In other browsers it works fine, but not in IE(6,7,8).

Code:

action = '/controller/action/id/';
target = 'upload_iframe';
enctype = 'multipart/form-data';    

$('#form1').attr("action",action);
$('#form1').attr("target",target);
$('#form1').attr("enctype",enctype);

So what's the problem ? Your help would be appreciated.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about internet-explorer