How can I get the request GET
for a label <a>
? that is, I do have:
<a href="ejemplo1" > Ejemplo #1</a>
<a href="ejemplo2" > Ejemplo #2</a>
<a href="ejemplo3" > Ejemplo #3</a>
Said href
to show it by console, something like that every time you click on a link, it shows its href
corresponding:
$("a").click(function(e) {
e.preventDefault();
//aqui debería ir el codigo
});
The complete url with
event.target.href
You can do it like this: