dimanche 29 mars 2020

how to write if condition for an element has next element in pure javascript

I would like to write some code if an element has next element as a sibling in Pure Javascript. Thanks in advance. Following is an example.

A B

if( a has next element siblings ) { my code goes here }

Aucun commentaire:

Enregistrer un commentaire