How to find the parent element using javascript

Solution 1:

Using plain javascript:

element.parentNode

In jQuery:

element.parent()

Solution 2:

Use the change event of the select:

$('#my_select').change(function()
{
   $(this).parents('td').css('background', '#000000');
});