- Sat Aug 20, 2022 4:03 am
#830147
hello
i used
$("form").setOnchange( function(newVal, oldVal)
var ....... = $("#......").getValue() ;
if ( (.......... )) {
$("#........").setValue(......);
}
else {
$("#........").setValue("");
}
});
in my dynaform and its ok
1)above code change the result if all the fields in the form changed but
i want to change the result only if field 1 or field 2 change
so i used:
$("#field1" or "#field2").setOnchange( function(newVal, oldVal)....
but it doesn't work !!
what should i do?
2-when i use
$("form").setOnchange( function(newVal, oldVal) .....1
and
$("form").setOnchange( function(newVal, oldVal) .....2
it doesn't work too !
how can i use 2 or more $("form").setOnchange in 1 dynaform?
thanks
i used
$("form").setOnchange( function(newVal, oldVal)
var ....... = $("#......").getValue() ;
if ( (.......... )) {
$("#........").setValue(......);
}
else {
$("#........").setValue("");
}
});
in my dynaform and its ok
1)above code change the result if all the fields in the form changed but
i want to change the result only if field 1 or field 2 change
so i used:
$("#field1" or "#field2").setOnchange( function(newVal, oldVal)....
but it doesn't work !!
what should i do?
2-when i use
$("form").setOnchange( function(newVal, oldVal) .....1
and
$("form").setOnchange( function(newVal, oldVal) .....2
it doesn't work too !
how can i use 2 or more $("form").setOnchange in 1 dynaform?
thanks