- Fri Nov 20, 2020 9:24 am
#828670
Hello,
I'm using a dropdown which load the informacion from a DB, this works just fine. With JS i'm showing the value of this dropdown but always show me the same value no matter which option i select.
This is the JS:
CODE: SELECT ALL
$(document).ready(function() {
$("#DRP_TIPO_FACTURACION").getControl().change( function() {
alert($("#DRP_TIPO_FACTURACION").getValue());
return false;
if$("#DRP_TIPO_FACTURACION").getValue() != 0 && $("#TXT_EMPRESA").getValue() != ''){
var q = $("#DRP_TIPO_FACTURACION").getValue()+'*-*'+$("#TXT_EMPRESA").getValue();
$.ajax({url: "/buscarServicios.php?q="+q, success: function(result){
alert(result);
}});
}
});
});
thanks
jackyjoy
I'm using a dropdown which load the informacion from a DB, this works just fine. With JS i'm showing the value of this dropdown but always show me the same value no matter which option i select.
This is the JS:
CODE: SELECT ALL
$(document).ready(function() {
$("#DRP_TIPO_FACTURACION").getControl().change( function() {
alert($("#DRP_TIPO_FACTURACION").getValue());
return false;
if$("#DRP_TIPO_FACTURACION").getValue() != 0 && $("#TXT_EMPRESA").getValue() != ''){
var q = $("#DRP_TIPO_FACTURACION").getValue()+'*-*'+$("#TXT_EMPRESA").getValue();
$.ajax({url: "/buscarServicios.php?q="+q, success: function(result){
alert(result);
}});
}
});
});
thanks
jackyjoy