« first day (401 days earlier)      last day (133 days later) » 

2:10 AM
// requires both inputs to be filled
document.querySelectorAll('input[id^="custom-"]').addEventListener('input', function() {
for (var i = 1; !!document.getElementById("custom-item-"+i); i++) {
var itemEntered = !!document.getElementById("custom-item-"+i).value,
amountEntered = !!document.getElementById("custom-amount-"+i).value;
if (itemEntered != amountEntered) {
document.getElementById("custom-item-"+i).required = true;
document.getElementById("custom-amount-"+i).required = true;
} else {
document.getElementById("custom-item-"+i).required = false;
 
1 message moved from JavaScript
 
 
10 hours later…
12:11 PM
Hi
can anybody help me with this question
0
Q: How to perform dropdown control validation with angular js validator?

LearningI am doing angular js dropdown validation but getting problem when doing dropdown validation. I have taken everything from this website and using this code: https://github.com/turinggroup/angular-validator Demo But in the above link there is nothing like doing validation on Dropdwon control.So...

 
3 messages moved from C#
 

« first day (401 days earlier)      last day (133 days later) »