I have a situation to check if a LINK made of "a href" is hidden or not. All good.
But we use same javascript in many other pages. So some pages might not have this element (I mean ID). How do I make a null or undefined check so that it doesn't through null error when it evaluates below if condition.
I want to check for this specific ID "AgeCheckbox". The way we usually check for null in C# and then evaluate condition. Please help me.
function Handle(err) {
if ($('#AgeCheckbox').is(":hidden") == false)
{
CalMedicine();
ShowTotal();
}
}
I read some articles, I want it to be strong, using 3 equals or so.