Discovered something and am looking into a bit of incite as to why one way works and the other doesn\'t. Looks to be only an IE7 thing but as IE7, sigh, still needs some su
The answer can be found in the API for the jQuery() function itself.
Note: Internet Explorer will not allow you to create an input or button element and change its type; you must specify the type using
for example. A demonstration of this can be seen below:
Unsupported in IE:
$('', { type: 'text', name: 'test' }).appendTo("body");
Supported workaround:
$('').attr({ name: 'test' }).appendTo("body");