19
Sep
08

NTS: id xhtml attribute

 <td id="text_data">  <- Bad
 <td id="data">  <- Good

If you store a record’s Id into an xhtml id attribute, store it directly and don’t decorate it with any text, especially when the text is only a decoration.

This obviates the need to do javascript substring manipulation when you need the number.

Cheers!


0 Responses to “NTS: id xhtml attribute”



  1. No Comments Yet

Leave a Reply