Dharmesh Vekariya
Dharmesh Vekariya

Reputation: 1156

How to remove title from any tag?

I am using same structure page-1 and page-2 page but remove this title from only page-1 how remove this please help me same code call so i will not change in structure. This is show in hover state so want remove this. Thanks in advance.

<i class="icon-eye icons" title="Quick View"></i>

Upvotes: 0

Views: 280

Answers (1)

Seba Cherian
Seba Cherian

Reputation: 1793

Try this:

var element = document.getElementById(id);
element.removeAttribute("title"); 

Upvotes: 4

Related Questions