set select2 val when it is a select control

Just check if it is a select control or a tag control and set val or data dependent on type.