I have this snippet of jquery
$(\'.button\').on(\'click\',(e)=>{ window.location.href="www.google.com?id=" +(this.id); })
My qu