In the following javascript code,
needSubIdCheck = $("#needSubIdCheck").text();
liveSupplierCount = $("#liveSupplierCount").text();
subIdCount = $("#subIdCount").text();
if(needSubIdCheck == 'true')
{
if( liveSupplierCount > subIdCount )
{
alert("subIDS Needs to be assigned");
return false;
}
}
The above code gives, "Uncaught TypeError: alert is not a function" in the console. If I change the alert with window.confirm or console.log everything is fine. Can anyone help me to come out of this problem?