Looking for an JQuery to check for image visibility. The image control is inside a repeater control
What is the eqivalent JQuery for the below?

    function ChooseProd(obj) {
            
            var objectID = document.getElementById(obj.id);
            var isVisible = objectID.style.visibility;
            if (isVisible == "visible") alert("Image visible");
            else alert("Not visible");
            return false;
            }

I tried with

    var isVisible = $(obj.id).is(":visible");
    if (isVisible == "visible") alert("Image visible");
    else alert("Not visible");

But not working 

Thanks



Looking for an JQuery to check for image visibility. The image control is inside a repeater control
===

What is the eqivalent JQuery for the below?

    function ChooseProd(obj) {
            
            var objectID = document.getElementById(obj.id);
            var isVisible = objectID.style.visibility;
            if (isVisible == "visible") alert("Image visible");
            else alert("Not visible");
            return false;
            }

I tried with

    var isVisible = $(obj.id).is(":visible");
    if (isVisible == "visible") alert("Image visible");
    else alert("Not visible");

But not working 

Thanks


