I have already visited several similar topics, but the answers are always $(\'element\').val(), but this only returns an array with the text and not the value.
$(\'element\').val()