find parents and nth child of element clicked and send for server javascript

i want to find parents and nth child clicked of element and send for server after user go page and clicked on the element alert You have already clicked. English is not good, sorry