Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
わかりました...指定されたクラス名で要素の親の子を選択するにはどうすればよいですか..?
「要素の親の子」は兄弟と呼ばれます。
$(this).siblings(".theClassYou'reAfter")
$(this).parent("div").child(".className")
また、親要素の子は技術的には現在の要素の兄弟であるため、次のことを試すことができます。
$(this).siblings(".className")