I have a script as below
$(\'.button1\').click(function() { document.location.href=$(this).attr(\'id\'); });
the button1 has variable uniqu
$('.button1').click(function() { document.location.href='/index.php?id=' + $(this).attr('id'); });