Kannan AU

Kannan AU

  • 1.9k
  • 57
  • 6.6k

In Jquery How to remove the text from DOM element

Jul 20 2019 4:21 PM
Dear All,
I am new to Jquery, Please help me.
I need to remove the text 'Commercial' and 'Government' from the DOM HTML.
Kindly find the attached image which has my complete DOM element.
I have tried with the below code, It did not work :$('Government').hide();
Here is the DOM element :
<input name="IsGovernment" disabled="disabled" id="IsGovernment" style="display: none;" aria-label="Commercial" type="radio" value="C">
<span class="s-panel-label-text">Commercial</span>

Brought to you by:

Answers (1)