You got it right.
I was going to provide you similar patch based on Select by Class. I personally don't understand why the dev. teem used the ID over class though. Because ID's are dynamically changing, but the class names are always the same no matter the sorting is.
Maybe because it is always ideal to use ID's over class name, because it performs little faster. (it was much faster previously with ordinary JS, but there is no big difference nowadays)
I just found this article from google.com, take a look at it, very interesting:
jsperf.com/getelementbyid-vs-queryselector/25
But this performance different is very negligible in today's browsers and with jQuery.
Preferring selecting elements by ID is just a bad habit of the old-fashioned JavaScript coders ;)
Case solved. Topic is closed.
________________________________________________________________________________
If you like CleanMart and satisfied with the support you have received, please "write a review" on:
flexiblewebdesign.com/Virtuemart-2-Templates/CleanMart
Rate CleanMart and write a couple of sentences to share your experience with the support team. It won't take more than 2 minutes from you but it is extremely important for us. Thanks in advance!
Regards,
Support