Vanilla JavaScript equivalent of jQuery(…).parent().nextAll(selector)

I’m trying to have a vanilla JavaScript selector (without using jQuery) to get the same selection as shown below:

$('[data-automationid=pictureupload_1]').parent().nextAll('input[type=text]')

Can someone please help me? I’ve been struggling with it.

14 thoughts on “Vanilla JavaScript equivalent of jQuery(…).parent().nextAll(selector)”

Leave a Comment