Posts by Eduardo • 1 point
1 post
-
0
votes4
answers6187
viewsA: How to pick up element above Jquery?
Use the function .prev() .prev() always brings the previous element In case your click event calls an element inside a paragraph if you want one above where it is. Do so: $('#test-task').on('click',…