I'm trying to hide some specific <tr> rows on the registration form in Virtuemart that are not needed, but there is no way to 'target' them as it uses the same piece of coding to create all the rows.
Where the td class is simply called "key" and all td are then called the same. We are trying to add in some consecutive lettering functionality so that each row then gets labelled with a consecutive number.
We've tried adding this into the top of the page:
<?php
// array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i');
foreach (range('a', 'z') as $letter)
?>
Which does generate consecutive letters, and then this change to the code:
If feasible, I would make that an ID attribute instead of CLASS, since that is its purpose: to uniquely identify that element. So you might keep the single class name for all those elements so that you can use that for common CSS attributes, then access the specific ID(s) for special treatment of those elements.
PHP Code:
echo ' <tr class="key" id="'.$_field['name'].'">'
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks