Use value for attribute instead of textContent

'Attr.textContent' is deprecated. Please use 'value' instead.