Hey, I am having problems adding/removing elements dynamically.
I know why it's not working, I just don't know a work-around for the problem.
Problem:
I am dynamically creating elements, naming them, and then later searching for them so I can eather append them, or delete them. Works in firefox of course. I know this isn't supposed to work, and I have no idea how to make it work.
Basically when I do this:
and then do this
I obviously get a 0.
I just need some kind of work-around that follows standards, or at least compatible with Firefox, Internet Explorer, Safari, and Opera. If it doesn't work in Netscape it's no big deal.
thanks.
ALSO-----
Oh also, using a
Doesn't work eather. Still doesn't register.
Thanks.
I know why it's not working, I just don't know a work-around for the problem.
Problem:
I am dynamically creating elements, naming them, and then later searching for them so I can eather append them, or delete them. Works in firefox of course. I know this isn't supposed to work, and I have no idea how to make it work.
Basically when I do this:
Code:
var fElement = getElementsByName('elementname');
Code:
window.alert(fElement.length);
I just need some kind of work-around that follows standards, or at least compatible with Firefox, Internet Explorer, Safari, and Opera. If it doesn't work in Netscape it's no big deal.
thanks.
ALSO-----
Oh also, using a
Code:
document.createElement('<input name="whatever">');
Thanks.
Comment