I have a div which has a class name myClass and id name myId. The div has following style.
.myClass {
    height: 74%;
    margin-top: -1px;
    position: relative;
    overflow-y: auto;
    width: 100%;
    overflow-x: hidden;
    visibility: hidden;
}
When i try to change visibility from hidden to visible doing this
$('#myId').css({ 'visibility': 'visible' });
I am using id in JQuery instead of class because same class is applied to others elements too. My div is still not visible. What am I doing wrong?
Yes you can do this by the following ways
$('#myId').css('display','block');
$('#myId').css('display','inline');
$('#myId').show();
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With