[jQuery] Re: Changing type input on IE

2007-05-10 Thread Aaron Heimlich
Just to clarify, the correct way would be: $("#test").after(""); OR $("").insertAfter("#test"); both of which say "create an (with the attributes set as shown) and insert it after #test in the DOM" On 5/10/07, Erik Beeson <[EMAIL PROTECTED]> wrote: Right. $("#test").insertAfter(""); Is

[jQuery] Re: Changing type input on IE

2007-05-10 Thread Erik Beeson
Right. $("#test").insertAfter(""); Is the same as: $("").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 somehow. --Erik On 5/10/07, Glen Lipka <[EMAIL PROTECTED]> wrote: This is sort

[jQuery] Re: Changing type input on IE

2007-05-10 Thread Jeff L
untested, but something like this? $('#btnEnviar').before('').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 possible on IE http://dev.jquery.com/ticke

[jQuery] Re: Changing type input on IE

2007-05-10 Thread Glen Lipka
This is sort of strange. $("#test").after(""); $("#test").remove(); Works in IE $("#test").insertAfter(""); $("#test").remove(); This doesn't. In the API it says, "Same as $("#foo").after("p")" Im confused. Glen On 5/10/07, Glen Lipka <[EMAIL PROTECTED]> wrote: What about finding the elem

[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(""); $("#btnEnviar").remove(); Its only slightly longer, but would work in IE. Glen On 5/10/07, Harlley Roberto <[EMAIL PROTECTED]> wrote: Hi, I need to do this: $("