I have found posts referencing JQuery but I would like to know if it's possible to get the content string of text of a psuedo::after element on an element.
If I have the element in question selected with e.g. document.querySelectorAll('.checkout-form-error')[0];
How can I select the string of text 'Postal code field is required.' using JS?