1
Answer

In Jquery How to remove the text from DOM element

Kannan AU

Kannan AU

5y
534
1
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)