Un foro de discusión para nuestra comunidad de hispano hablante
User avatar
By milagrosmaria16
#826726
Buenas tardes,

Estoy tratando de almacenar la siguiente información ("AAA - " + ticket) en un campo oculto con el siguiente código:
Code: Select all
function setAccion() {
  //var ssa = $( '#txhSSANueva' ).setText(['SSA']);
  var ticket = $('#txhCaseNumber').getValue();
  if ( $( '#cboSeleccionarSSA' ).getValue == '4' ) {
    $( '#txhSSANueva' ).setValue("AAA - " + ticket);
    //($( '#txhSSANueva' ).setText(["SSA "])) + ($('#txhCaseNumber').getValue());
  } alert ($( '#txhSSANueva' ));
}
$('#btnEnviar').click(setAccion);
Pero no me esta funcionando, esta función la tenia en la versión antigua pero en la 3.0 no :(

Espero me puedan apoyar por favor.

Muchas gracias!!!
User avatar
By programerboy
#826831
Hi,

Use this code:
Code: Select all
function setAccion() {
  var ticket = $('#txhCaseNumber').getValue();
  if ( $( '#cboSeleccionarSSA' ).getValue() == '4' ) {
    $( '#txhSSANueva' ).setValue("AAA - " + ticket);
  }
}
$('#btnEnviar').click(setAccion);
https://pmlearning.info
Thanks
Last edited by programerboy on Wed Apr 07, 2021 1:33 am, edited 2 times in total.
What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]