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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.