Chào bạn!
Code chạy vẫn okie đó. Bạn xem lại có thiếu sót gì không?Code:<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script type="text/javascript"> $('document').ready(function() { $('.buy').click(function () { var b = $(this).attr("title"); alert(b); }); }); </script>