There's an issue with an error message that I need to handle in certain scenarios:
<div id="PickerPopupNoResultsMessage" style="color:red; font-weight: bold; " class="ui-helper-hidden">
Please select Name first.
</div>
The error message appears when I execute the following code in the view:
$('#PickerPopupNoResultsMessage').removeClass('ui-helper-hidden');
resulting in it becoming:
<div id="PickerPopupNoResultsMessage" class="" style="color: red; font-weight: bold; display: none;">
Please select Name first.
</div>
I'm struggling to remove the display: none
property. I've attempted using both removeClass
and addClass
. When using addClass
to set display: block
, the class is added but the display: none
persists.
Any assistance would be greatly appreciated, as this seemingly small issue has consumed a significant amount of my time :(