$( "#target" ).click(function() {
var x = document.getElementById("myanchor").href;
});
<div><a href="{{ audio.get_api_url }}" ><i class="icon-control-play i-2x" id="target"></i></a> </div>
I need to send the api url to the my jquery function to call the ajax function to execute the code further. The page should not redirect to the api url, I cant figure this thing out.