get text and value attribute