I'm looking for some help.
I've got what should be a simple onclick redirect on a image.
I found some code (shown below) that assigns an onclick function to every image that uses the class thumbnails. For some reason its not allowing the url to redirect. I get no JS errors pop up but clearly something is failing...
$script .= "$(document).ready(function() {";
$script .= "$('img.thumbnail').click(function() {";
$script .= "window.location.href='".$href."'.replace(/__selected_service__/, selected_service);";
$script .= "});";
$script .= "});";
$s .= '<input type="radio" name="app_select_services" id="'.$service->ID.'" value="'.$service->ID.'"'.$sel.' /><label for="'.$service->ID.'"><img class="thumbnail" src="http://kerrymotorservices.co.uk/wp-content/uploads/2015/04/'.$service->ID.'.png" title="'.$service_description.'"></label>';
Can anyone help please?