The below code snippet explains how to find HTML Anchor links based on its HREF attribute value using jQuery. Here it is explained how we can find using direct match and contains or wild card match
<html xmlns="">
    <script type="text/javascript" src=""></script>
    <script type="text/javascript">
        $("#btnExactMatch").live("click", function () {
            var matches = "";
            $("a[href='" + $("#txtSearchTerm").val() + "']").each(function () {
                matches += $(this).text() + "\r\n";
        $("#btnLikeMatch").live("click", function () {
            var matches = "";
            $("a[href*='" + $("#txtSearchTerm").val() + "']").each(function () {
                matches += $(this).text() + "\r\n";
    <form id="form1">
        <input type = "text" id = "txtSearchTerm" />
        <input type = "button" id = "btnExactMatch" value = "Exact Match" />
        <input type = "button" id = "btnLikeMatch" value = "Like Match" />
        <br /><br />
        <a href = "">ASPSnippets</a><br />
        <a href = "">ASPForums</a><br />
        <a href = "">jQueryFAQs</a><br />
In the above code snippet there are 2 buttons btnExactMatch (for Exact Match) and btnLikeMatch (for Wild Card Match) and a textbox txtSearchTerm which accepts the string to be searched.
For exact match you will need to put the complete HREF Example:
For wild card match you just need to put a part of string and it will match the complete HREF. Example: aspsnippets