Cannot change color of a-tag
My demo code: http://jsfiddle.net/4w3Hy/3/
My first code adds html to an div with the id:Content:
$(".text").click(function() {
$("#Content").html($(this).next(".text1").html());
});
On the id:Content, with the new html, i try to run another jquery function:
$(".click").click(function() {
$('.click').css('color','');
$(this).css( "color", "red" );
});
But somehow this wont work!! What did i made wrong? to see html
http://jsfiddle.net/4w3Hy/3/
No comments:
Post a Comment