AHA7 Posted May 29, 2007 Share Posted May 29, 2007 Hello, Say, that I have an HTML page with many tables and with each table has a unique class (styling) for its rows that is different from other tables'. I use the dom class (DomDocument()) to load the HTML page for other purposes but it would be nice if I could achieve this using dom functions as follows: I want to get the attribute class (its value) of the first, and only the first, childnode (<tr>) of each table on the page. Note: each <tr> element in all tables has its own class attribute with unique value to each table. All the rows (<tr>'s) of the same table has the same value for their class attribute. How can I do that? Quote Link to comment https://forums.phpfreaks.com/topic/53373-need-some-help-with-dom/ 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.