I am trying to get a button class to be clicked and redirected to a new page.
But it is not working for me.
Here is my code:
$('li#menu-item-28').on('click', function(event) {
event.preventDefault();
//alert('Clicked');
url = "http://wwww.bbc.co.uk";
$(location).attr("href", url);
});
Any help would be appreciated :)
window.location.href = url