I want to change the href of a button:
<button class="btn btn-info btn-lg" id="home" onclick="location.href='index.php'">Home</button>
I tried this:
$('#home').prop("href" , "home.php");
PHP:
<button class="btn btn-info btn-lg" id="home" onclick="location.href='<?php echo $link; ?>'">Home</button>
but it didn't work.