javascript remove atri code example
Example 1: assigned property delete in jquery
We can use removeAttr() to delete the assigned property of the element.
Example:
<p class="element_name" id="element_id" name="element_name">
js: $("p").removeAttr("name");
output: <p class="element_name" id="element_id">
Example 2: remove attribute jquery
$('p').attr('style','');