How do I simplify repeating creatediv function by adding a new variable?
I wonder if there’s a simpler way to write this code. I noticed that the creatediv is kinda repeating, the only difference would be the class (.parentdivclass) that will be append to the filtered list.