Apply color to row on select w/ jQuery
<p>If I have a selector with drop-down options, how can I change a color of all cells in this row on change?</p>

<pre><code>function changeColor(){

}

$(".mySelector").change(function() {
    changeColor();
});

&lt;table&gt;
&lt;tr&gt;
    &lt;td&gt;val 1&lt;/td&gt;
    &lt;td&gt;val 2&lt;/td&gt;
    &lt;td&gt;
    &lt;select class="mySelector"&gt;
        &lt;option value="red"&gt;red&lt;/option&gt;
        &lt;option value="grn"&gt;green&lt;/option&gt;
        &lt;option value="blu"&gt;blue&lt;/option&gt;
    &lt;/select&gt;
    &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;val 3&lt;/td&gt;
    &lt;td&gt;val 4&lt;/td&gt;
    &lt;td&gt;
    &lt;select class="mySelector"&gt;
        &lt;option value="red"&gt;red&lt;/option&gt;
        &lt;option value="grn"&gt;green&lt;/option&gt;
        &lt;option value="blu"&gt;blue&lt;/option&gt;
    &lt;/select&gt;
    &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>
