Attaching dynamic attribute to the control DIV if set