function QtyPriUMChanged(PlusCtrl, MinusCtrl, txtValue, PlusVal, MinusVal) {
if(MinusVal <= document.getElementById(txtValue).value && document.getElementById(txtValue).value <= PlusVal)
{
document.getElementById(txtValue).style.background = "Red";
}
else
{
alert("InCorrect");
}
}
Try this, hope this will work..
Enjoy..:)