[Solved] Get the value of href using jQuery [duplicate]


Instead of using value, you should use data-value="<?php echo $subID;?>"

then you can get the value like this

var myVal = $('#cancel').data("value");

solved Get the value of href using jQuery [duplicate]