You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var metrics = [
[ '#exam', 'presence', 'cannot be empty' ],
[ '#totalScore', 'presence', 'cannot be empty' ],
[ '#outstandingScore', 'presence', 'cannot be empty' ]
];
so if someone types something in the #totalScore, #outstandingScore will be populated automatically inside change event. but after change event, error is still set on #outstandingScore
The text was updated successfully, but these errors were encountered:
for example:
html:
<input name="exam" type=text id=exam />
<input name="totalScore" type=text id=totalScore />
<input name="outstandingScore" type=text id=outstandingScore/>
JS:
$('#totalScore').change(function (evt) {
var score = parseInt($('#totalScore').val());
$('#outstandingScore').val(score * 0.9);
});
so if someone types something in the #totalScore, #outstandingScore will be populated automatically inside change event. but after change event, error is still set on #outstandingScore
The text was updated successfully, but these errors were encountered: