how to get link href in jquery code example Example: jquery get link href value $("#mylink").attr("href");