I have a script as below
$(\'.button1\').click(function() { document.location.href=$(this).attr(\'id\'); });
the button1 has variable uniqu
You need to specify the domain:
$('.button1').click(function() { window.location = 'www.example.com/index.php?id=' + this.id; });