TLDR When clicking on a link I want to assign a cookie with a name of instrument and a value of the text on the link clicked.
Using Jquery.1.4.2.min
var value = $(this);
will assign the jQuery object to value. Use
var value = $(this).text();
or
var value = $(this).attr('href');