Adding new items to list fields
As an example, this is not particularly useful if you are looking for something that is "Plug & Play". However there are times when the methods that are demonstrated may be applicable. Stick with me on this one.
Look at the list of colours in the box below. Click on one of them and it will magically be swapped over in to the "empty" list.
createelement in netscape 4.7
Hi Jake.
Nice code and works a treat in IE5 and 6.
What are the alternatives to the following 'functions' in NS 4.7 as they refuse to work for me?
createElement options.remove options.add
Should i be using a different function to reflect the different object model?
Thanks in advance, Tom.
Reply
How to remove an option item
I was very much appreciated your advice how to transfer items from one option element to another but how does how do the reverse.
I would imagine you would call the same function from the new element but how does one code an element which does not exist.
I know that sounds dumb but I think you know what I mean.
Thanks Steve
PS. I'm a complete novice to Javascript and DHTML.
Reply