Re: PHP Manual problems
| From: | Robert Cummings | Date: | Wed, 10 Feb 2010 19:08:15 +0000 |
| Subject: | Re: PHP Manual problems | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-301956@lists.php.net to get a copy of this message | ||
Michael A. Peters wrote:
Michael A. Peters wrote:I specifically said for styling :) Use of IDs for node targeting in JavaScript is a VERY good use of IDs :D Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHPRobert Cummings wrote:I should also point out that when all your js is external (as it should be) rather than inline, using an id tag makes it much easier to modify the DOM client side. Yes, you can do document.getElementsByTagName('whatever').item(n) if you know what item the node will happen to be in the nodelist, but if you don't know, then you have to look at other characteristics of the node to find out which node in the list you want.Just a word of thought... if you're doing styling... use classes and not IDs. Use of IDs for styling is very often indicative of inexperience, inability, or lack of understanding with respect to CSS.I use ID when there will only be one element that needs to be styled that way.