[Solved] Get the value of href using jQuery [duplicate]
[ad_1] 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”); [ad_2] solved Get the value of href using jQuery [duplicate]