jquery.change function fails to fire after page refresh
<p>I need some help I am new to jQuery and I am trying to use the .change function. So what I am trying to do is check to find out if a value changed on the form. My application has several master pages, update panels and the like. (ASP.net)  So I am using the following code on the master page:</p>

<pre><code> &lt;asp:HiddenField ID="_Changed" runat="server" Value="false" /&gt;

        &lt;script&gt;
            $(":input").change(function () {
                document.getElementById('_Changed').value = "true";
                alert("Change occured");
                return false;
            });
        &lt;/script&gt;
</code></pre>

<p>This works on every form several times but on the one form that I am really trying to use it, it only works once. This other form is the only one that interacts with the hidden field. The code for this page is:</p>

<pre><code>&lt;script&gt;
function Home_Click() {
        var boolRetVal = false;
        if (document.getElementById('_Changed').value == "true") {
            if (confirm("You have unsaved data do you wish to proceed?")) {
                boolRetVal = true;
                document.getElementById('_Changed').value = "false";
            }
        } else {
            boolRetVal = true;
            document.getElementById('_Changed').value = "false";
        }

        return boolRetVal;
    }
&lt;/script&gt;

&lt;asp:Button ID="btnHome" runat="server" Text="Home" OnClientClick="return Home_Click()"
                                    OnClick="btnHome_Click" CausesValidation="false" /&gt;
</code></pre>

<p>So when someone clicks the home button and they click ok to the confirm prompt and the screen reloads the .change query never runs again. I don't receive any javascript errors it just never runs again.</p>
