Next Adjacent Selector

Syntax

$("label + input")

Description

Next Adjacent Selector is used to select the next sibling element which immediately follows the specified element in a document. This selector finds all the input elements that are next to the element specified by the previous element in a document. Below example shows you how to append a content to the ajacent cells in a form.

Example Code

Result:






Ask Questions

Ask Question