add select element
prepare for multi-level attribute setting (style.bla.bla = ...)
don't crash if onupdate == nil