>>However I don't get all the number of .parent() correctly and it's a pain in the butt to find them every time.
>>I then saw on jQuery.com that I can use .closest() (
http://api.jquery.com/closest/) so I thought I would be able to write something like:
If you had posted your HTML markup from the very start, I would have suggested that to begin with. The more info you provide, it is more likely that you are going to get a quick response/solution.
>>//Performance Measure
>> control = $("select[title='Performan
ce Measure']").closest('tr').
hide();
>>It didn't work though and the elements are still visible.
That's because the element with title="Performance Measure" is NOT a <SELECT> tag. It is an <INPUT> tag, so what you needed is:
control = $("input[title='Performanc
e Measure']").closest('tr').
hide();