Skip to content
Advertisement

Tag: custom-data-attribute

jQuery sort different class elements by attribute

There is two arrays that display information appending elements to the document. They are being printed in ascending order, but when it comes to organize them all, I can’t organize them individually by data attribute. This function does the sort but can’t mix different element classes: Before the above code this is where I print the two different element classes

Advertisement