if dropdown ammount result length if sizeId find selected val -1 noAmm

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
if(dropdown == "#ammount" && result.length ==1){
if($("#sizeId").find(":selected").val() != "-1"){
$("#noAmmount").removeAttr("visibility");
$("#noAmmount").removeAttr("display");
$("#noAmmount").attr("visibility", "visible");
}
else{
$("#noAmmount").attr("visibility", "hidden");
$("#noAmmount").attr("display", "none");
}
}