Set height same height of all columns in a row after dom loaded


I have following structure:


Now I have to set the height of all span with id “test” in a row(heigth to be set is the maximum height of spans in a row after rendering ie. math.max(span1,span2, span3)).
I am unable to do it.
Please help me.