Correct Syntax to Include object data in jquery selector
<p>I'm trying to make a jquery selector as per the below code. However, my js is pretty poor and i'm not sure what the correct syntax is to use data.key as the value here (data.key should have a numeric value btw). I'd know how to do this in php! But not sure here :(</p>

<pre><code>onClick: function(data) {
    if($(".myForm select option[value=data.key]").is(':selected')){
        alert('foo');
    }
}
</code></pre>

<p>Any advice would be very gratefully received!</p>

<p>Thanks!</p>
