unable to set href inside click event of Jquery
<p>Hi I am trying to set href using Jquery inside click event of RadioButtonList but that doesnt work If I take the same code to document.ready event it works fine but not in click event. Please advice.</p>

<pre><code>$(document).ready(function() {    
   url = "Results.aspx?latitude=" +latitude + "&amp;Longitude=" + longitude;

 $("a[href='http://www.google.com/']").attr("href", url); // this works..
        }        
        $('.rbl input').click(function() {

            id = $(this).parent().children("input").val();
            url = "Results.aspx?latitude=" + latitude + "&amp;Longitude=" + longitude + "&amp;ServiceCenterProductTypeId=" + id;
            //alert(url);
            $("a[href='http://www.google.com/']").attr("href", url); //this doesnt work....

        });
    });
</code></pre>
