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.
<ul> <li class="selected cell">test</li> <li class="cell">test2</li> </ul>
.selected .cell 要素のみを選択するにはどうすればよいですか?
Y.one('.selected, .cell') <= これは両方の要素を選択します。最初のものを選択したいだけです
のようなものはありますか?Y.one('.cell').one('.selected') ???
.selected.cell
それらの間にスペースがないことに注意してください。