By GianYagami - Wed Feb 19, 2020 12:53 am
- Wed Feb 19, 2020 12:53 am
#827570
Hi, I need help to fix my function. this is used in number only textbox which is autoformat to "x year/years"
Code: Select all
any advice?function formatInYears(FieldID, newVal, oldVal){
console.log(FieldID); //instead of fieldID, this return new Value of id
//I want to add suffix FieldID_label to x years (it's mean real data only contains number, but show as x year/years)
}
$('#document').ready(function() {
//mandatoryPoA();
mandatoryConfOthers();
informedlabel();
$('#durationNDA').setOnchange(formatInYears); //I want to make formatInYears function reusable to another field
});