I want to cancel any links and add extra attributes to each one. Below is how I\'ve achieved this.
function anularEnlaces(){ $(\'nav a\').each(function()
Valid if you are using HTML5, you can add your own custom data attributes data-:
data-
HTML5 Custom Data Attributes (data-*)
and you can use jQuery's $.data to read and modify them.