Is not a function in jquery
<p>I have a big problem, I can't execute my jQuery code correctly. </p>

<p>I edited the post to show the html...</p>

<pre><code>&lt;select id="corrector" name="availability" value="" onchange="escorrecto();" &gt;
    &lt;option value="correcto"&gt;&lt;/option&gt;
    &lt;option value="incorrecto"&gt;&lt;/option&gt;
    &lt;option value="nodefinido"&gt;&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>and the jQuery code...</p>

<pre><code>function escorrecto() 
{
    switch ($('corrector').value) 
    {
        case 'correcto':
            alert($('corrector').value)
        break;
        case 'incorrecto':
            alert($('corrector').value)
        break;

        case 'nodefinido':
            alert($('corrector').value)
            $("#campo").prop("disabled",true); 
        break;
    }
}
</code></pre>
