Is it possible to remove the attribute of the first HTML <div> tag? So, this:
<div style="display: none; ">aaa</div>
becomes
<div>aaa</div>
from the following:
<div style="display: none; ">aaa</div>
<a href="#" style="display: none; ">(bbb)</a>
<span style="display: none; ">ccc</span>
To remvove it from literally the first element use
.removeAttr():or in this case
.show()will show the element by removing thedisplayproperty:Though you probably want to narrow it down to inside something else, for example:
If you want to show the first hidden one, use
:hiddenas your selector: