removeAttr(), jQuery
Html Tags can have various Attributes. You can use removeAttr() Method from jQuery to to remove one or more attributes .
Syntax:
See the example below.
<head>
<style type='text/css'>
</style>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script>
<script type='text/javascript'>
$(document).ready(function(){
$('#da').click(function(){
$('a').removeAttr('title')
})
})
</script>
</head>
<body>
<a href='http://interactivefrench.blogspot.com/' title='Learn French Language Free and Interactively'>Free French</a>
<br>
<button type='button' id='da'>Click to Remove Title Attribute</button>
</body>
</html>
Syntax:
$("Selector").removeAttr("AttributeName");
See the example below.
<head>
<style type='text/css'>
</style>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script>
<script type='text/javascript'>
$(document).ready(function(){
$('#da').click(function(){
$('a').removeAttr('title')
})
})
</script>
</head>
<body>
<a href='http://interactivefrench.blogspot.com/' title='Learn French Language Free and Interactively'>Free French</a>
<br>
<button type='button' id='da'>Click to Remove Title Attribute</button>
</body>
</html>