Re: [jQuery] attr() not working in IE anymore?

2006-08-08 Thread Sam Collett
On 08/08/06, Klaus Hartl [EMAIL PROTECTED] wrote: To create non-text input elements in IE you have to use the following: document.createElement(input type=submit); In contrast to this: You cannot create button elements with document.createElement in IE, but have to use innerHTML for

Re: [jQuery] attr() not working in IE anymore?

2006-08-08 Thread Klaus Hartl
Actually, this works: var button = document.createElement('input'); button.type = 'submit'; button.value = 'The button'; document.getElementById('test').appendChild(button); yes, sure, it isn't a button element. button elements can take html as children, span for example which allows