[jQuery] Re: Changing type input on IE

2007-05-10 Thread Glen Lipka
What about finding the elements, and removing them, and inserting new inputs with the right type? $(#btnEnviar).insertAfter(input type='button' id='btnEnviar'); $(#btnEnviar).remove(); Its only slightly longer, but would work in IE. Glen On 5/10/07, Harlley Roberto [EMAIL PROTECTED] wrote:

[jQuery] Re: Changing type input on IE

2007-05-10 Thread Glen Lipka
This is sort of strange. $(#test).after(input type='button' id='test' value='submit'); $(#test).remove(); Works in IE $(#test).insertAfter(input type='button' id='test' value='submit'); $(#test).remove(); This doesn't. In the API it says, Same as $(#foo).after(p) Im confused. Glen On

[jQuery] Re: Changing type input on IE

2007-05-10 Thread Jeff L
untested, but something like this? $('#btnEnviar').before('input type=button id= + $(this).id + /input').remove(); Jeff On 5/10/07, Harlley Roberto [EMAIL PROTECTED] wrote: Hi, I need to do this: $(#btnEnviar).attr(type, button); But accordind to my googled, I think that it's not

[jQuery] Re: Changing type input on IE

2007-05-10 Thread Erik Beeson
Right. $(#test).insertAfter(input type='button' id='test' value='submit'); Is the same as: $(input type='button' id='test' value='submit').after(#test); Which is insert #test after a newly created but not in the DOM input node, which doesn't do anything unless you go on to add it the DOM

[jQuery] Re: Changing type input on IE

2007-05-10 Thread Aaron Heimlich
Just to clarify, the correct way would be: $(#test).after(input type='button' id='test' value='submit'); OR $(input type='button' id='test' value='submit').insertAfter(#test); both of which say create an input (with the attributes set as shown) and insert it after #test in the DOM On