I'm using below css to hide an element :
.pds-pd-link {
display: none !important;
}
Using jQuery can I enable the display on the css .pds-pd-link
Something like $(.pds-pd-link).css("display","");
?
I'm using below css to hide an element :
.pds-pd-link {
display: none !important;
}
Using jQuery can I enable the display on the css .pds-pd-link
Something like $(.pds-pd-link).css("display","");
?
In a nutshell, yes.
Alternatively, you could use the following to show
or hide
the element:
$(.pds-pd-link).show();
$(.pds-pd-link).hide();
Or you could even use the toggle
method to automatically switch between the two:
$(.pds-pd-link).toggle();
Although you could do:
$(.pds-pd-link).css("display","none");
I would suggest:
$(.pds-pd-link).hide();
This should work
$('.pds-pd-link').css('cssText', 'display: block !important');