Malasorte Malasorte - 1 year ago 74
HTML Question

Remove attribute title from all HTML elements

I want to compleately wipe the title attribute from all elements inside a html doc. From table, p, img, div etc..

Currently I do this:

// and so on
// and so on
// and so on

Is there a more elegant way to do this? Without selecting individual elements?

Answer Source

Use the attribute selector and select just the elements with the title attribute and not all elements.