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
Other solution is to make a function for click reinitialization, because you may have other situation, like i had :), so logic may be following:
$(document).ready(function() {
initsomething();
});
function initsomething(){
.......
$('div#message').click(function() {
var valueSelected = $(this).html(); // picks up the whole id. I juust want single href!
alert(valueSelected);
return false;
});
.......
}
on ajax success run initsomething() :)