I am trying to get the html value of a linked clicked. The links are created dynamically with Ajax so I don\'t think .bind will work and I don\'t have latest version with
You should really be using the latest version if you can help it.
If it's the ".doYouMean" elements that are added using AJAX, and #message is always there, try:
$('#message').bind('click', function (event) {
var target = event.currentTarget;
if ($('.doYouMean').filter(target)) {
// target is the .doYouMean that was clicked: Handle here
};
});
(This works: http://www.jsfiddle.net/SuVzv/)