Js code
Let num=$(" # level_num "). Val ();
For (let n=0; N & lt; num; N++) {
Sort +=1;
Let newTr=document. The createElement method (' tr);
Let newTd=`
& lt; td>
CodePudding user response:
A id for each input, this HTML to the interface, $(" # set id "). The blur (function () {//determine coordinates must be smaller than the right
})
CodePudding user response:
Is a great god, and add the id in the JS code input, I didn't write inside the HTML input, only & lt; Th>CodePudding user response:
When you want to check inCodePudding user response:
$(document) on (" blur ", ". ActBerPos,. BerThgDir ", function (event) {
Var tr=$(this). The closest (" tr ");
Var a=parseFloat ($(". ActBerPos ", tr.) val ());
Var b=parseFloat ($(". BerThgDir ", tr.) val ());
if (! The isNaN (a) & amp; & ! The isNaN (b) & amp; & A>=b) {
Alert (" the left "+ a +" not less than the right "+ b);
}
});
CodePudding user response: