Kannan AU

Kannan AU

  • NA
  • 57
  • 24.5k

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 :
<label>
<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>
</label>
  

Answers (1)