[Solved]Double Tripple Problem Enter Integer Double Tripple Double Tripple Clear 1 Add Input Valid Q37042546
Please write code completely and correctly.
DOUBLE/TRIPPLE PROBLEM Enter Integer: Double: Tripple: Double Tripple Both Clear 1. Add input validation such that the proper ecror is generated when the input field is not a number. Rename to exam51.htm (20pts Use input form validation as follows: onclicke”if(isInteger( ‘input1′)) compute’input1’) function isInteger(id) var flag true var x document.getElementById (id); if (x.value null II x.value else if (x.value else if (isNaN (x.value)) falert (“Integer Field Empty”:flag-false: f alert (“Space is not Valid”): flag-false; Integer”); flagefalse;} An { alert (“Value Is Not else if((parseFloat (x.value))41 return flag; !-θ ) doubletripplejs.html exam51.html Input File: Output File: 2. Add onfocus functionality to the input field stating “Enter Integer”. Rename to exam52. html. ((20pts Input File: Output File: exam51.html exam52.html Show transcribed image text DOUBLE/TRIPPLE PROBLEM Enter Integer: Double: Tripple: Double Tripple Both Clear 1. Add input validation such that the proper ecror is generated when the input field is not a number. Rename to exam51.htm (20pts Use input form validation as follows: onclicke”if(isInteger( ‘input1′)) compute’input1’) function isInteger(id) var flag true var x document.getElementById (id); if (x.value null II x.value else if (x.value else if (isNaN (x.value)) falert (“Integer Field Empty”:flag-false: f alert (“Space is not Valid”): flag-false; Integer”); flagefalse;} An { alert (“Value Is Not else if((parseFloat (x.value))41 return flag; !-θ ) doubletripplejs.html exam51.html Input File: Output File: 2. Add onfocus functionality to the input field stating “Enter Integer”. Rename to exam52. html. ((20pts Input File: Output File: exam51.html exam52.html
Expert Answer
Answer to DOUBLE/TRIPPLE PROBLEM Enter Integer: Double: Tripple: Double Tripple Both Clear 1. Add input validation such that the p… . . .
OR

