I have a CSS class called .options.selected
and I am curious if it is possible to target the previous and next sibling element with the class .line
using jQuery?
<div class="options-label">Price:</div>
<div class="options first">$0 - $100</div>
<div class="line"></div>
<div class="options">$100 - $200</div>
<div class="line"></div>
<div class="options">$200</div>
<div class="line"></div>
<div class="options selected all">All</div>
<div class="line"></div>