Skip to:

Re: query/php problem

Note: using id="current" in this way is dodgy because plugins have to generate content that co-operates with other plugins.

If another plugin also uses id="current" the page will not validate (because each ID (identity) should be unique).

You could just say id="X8VQm2_current" but (a) it would look ugly and (b) regardless, you’re not changing the identity of the row, you’re just saying something about it, so using ID is still wrong.

The solution is easy: use class="current" instead and adjust your css so that instead of #current {} you use .current {}

The example I wrote for you before shows how to do it.

There is a painful habit of mis-using the id attribute among many theme designers and that makes it difficult to know what to do or why to do it :)

Skip to toolbar