There's an error message that I want to hide on some scenarios:
<div id="PickerPopupNoResultsMessage" style="color:red; font-weight: bold; " class="ui-helper-hidden">
Please select Name first.
</div>
It renders when I do this in the view:
$('#PickerPopupNoResultsMessage').removeClass('ui-helper-hidden');
so it becomes
<div id="PickerPopupNoResultsMessage" class="" style="color: red; font-weight: bold; display: none;">
Please select Name first.
</div>
I am unable to remove display: none
. I also tried removeClass
and addClass
. In addClass
I am setting display: block
and all it does is add the class, but display: none
still stays.
Please help as this small thing has taken a lot of my time :(