AnsweredAssumed Answered

how do i change the border of list lookup to red to show incorrect input?

Question asked by aishuiyer on Jul 17, 2018
Latest reply on Jul 27, 2018 by aishuiyer

if(fromShortcode.val() == toShortcode.val()){
 alert('same values entered in both the field!');
 NWF$(shortCode).addClass('border-red');
 }
 else
     {
      NWF$(shortCode).removeClass("red-border");
     }
  });
});

 

this is te code I have written where if the 'if' condition gets true then the list lookup field(shortCode) is to be set to red border or it should remain black itself

Outcomes