Jquery function .change()
<p>I need some help.</p>

<p>I have this code in my jsp for capture event onchange with Jquery.</p>

<pre><code>jQ("#idExp").change(function() { 
        onchangeExp();
    });

function onchangeExp(){
    alert("onchangeExp");
    if(jQ("#idExp").val()!="-1"){
        recuperarDatosAF();
    }else{
        jQ("#comboAF").attr('disabled',true);
        jQ("#comboAF").val("-1");
    }
}
</code></pre>

<p>I fill the combo whith this:</p>

<pre><code> jQ("#idExp").html("");
 jQ("#idExp").append("&lt;option value='-1'&gt;"+""+"&lt;/option&gt;");
 jQ.each(expedientes, function(i,value){
     jQ("#idExp").append("&lt;option value='"+i+"'&gt;"+value.codExpediente+" &lt;/option&gt;"); 
 });
</code></pre>

<p>Values of i is [0,1,2..]</p>

<p>The problem is that when I select the blank option from the combo with the value '-1', do not launch the onchange function runs, but instead when I select any other option from the combo, onchange function running.</p>

<p>You can not put negative values ​​of combo options?</p>

<p>Thanks for the help.</p>
