Select2 with HTML Table

Hi ,

How to use select2 with select inside a HTML Table .

the select gets its add using a for loop , when i tried to use select2 only last row having select2 , rest don’t.

Can you please help

Thanks,
Sudheer T