Wednesday, July 14, 2010

removeAttr(), jQuery

Html Tags can have various Attributes.  You can use removeAttr() Method from jQuery to to remove one or more attributes .


See the example below.

<style type='text/css'>


<script src=''></script>
<script type='text/javascript'>



<a href='' title='Learn French Language Free and Interactively'>Free French</a>
<button type='button' id='da'>Click to Remove Title Attribute</button>

By positiong the mouse over the link a description will appear,(Tittle attribute). After you click the button, the description will disappear.

Free French

No comments:

Post a Comment