cleary1981 Posted July 31, 2008 Share Posted July 31, 2008 Hi, I can't find any good examples of this. What I want to do is setup an array for all the children of a given element. In my case the root element should be 'canvas', and the number of child nodes and their attributes will vary. Help very much appreciated or a link to a decent tutorial. Thanks Link to comment https://forums.phpfreaks.com/topic/117498-solved-setting-up-an-array-of-children/ Share on other sites More sharing options...
RichardRotterdam Posted July 31, 2008 Share Posted July 31, 2008 if it has child elements element.children would return an array. however if i check a canvas tags with drawings in firebug i dont see any child elements in it so i am not sure if that would help Link to comment https://forums.phpfreaks.com/topic/117498-solved-setting-up-an-array-of-children/#findComment-604432 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.