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:
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
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
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
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
5 matches
Mail list logo