jQuery HTML Element How to - Remove tooltip from anchor








Question

We would like to know how to remove tooltip from anchor.

Answer


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.10.1.js'></script>
<script type='text/javascript'>
$(function(){<!--from   w  w  w .  ja v a  2s .c o  m-->
    $('a.without').attr('title', '');
});
</script>
</head>
<body>
  <a class='without' title='hello' href=''>Link</a>
  <a title='hello' href=''>Has tooltip</a>
</body>
</html>

The code above is rendered as follows: