I have a really simple problem.
How can I find the first previous element of another element? I tried the code below without success.
HTML:
&
If you are trying to get the preceding sibling, use .prev().
If you are trying to get the sibling of the parent (like in your example) use .parent().prev().
.parent().prev()