Added copying class attribute from original option element

Added copying class attribute from original option element