pass onselect calback true dom attributes