Hi there, i have i problem, im loading div through html() by button but, i have 10 div's with the same name and 10 buttons (php + mysql page, comments), and it always loads on the first one on page. There's my script:
-
$(function() {
$(".vote").click(function()
{
var id = $(this).attr("id");
var name = $(this).attr("name");
var dataString = 'id='+ id ;
var parent = $(this);
if (name=='up')
{ $("#votebox").fadeIn(100).load('include/voteup.php'); }
else
{
{ $("#votebox").fadeIn(100).load('include/votedown.php'); }
}
return false;
});
});
-
Is there any option to load it for every comment separately?