I am trying to take a list of anchors and show the text the anchor references to in a popup. like a pop-up glossary of sorts. I have tried a couple of different techniques but i couldnt get any to work as i am very new to this. this technique worked in firefox, but not in internet explorer. any help on this would be appreciated, or if i should be using a different method to this please let me know.
i have my anchor ids as say, id="first" and then the text it references as id="2first"
$("a").click(function(){
var toGet = $(this).attr('id');
var holder =$("#2" + toGet);
var toShow = $(holder).html();
loadPopup(toShow);
return false;
});