simple jquery on asp.net does not work on firefox
<p>I have been struggling with getting this work on Firefox. Hope there is somebody help me!</p>

<p>Basically; Firefox ignores the button click function and it's sub functions and the button posts the page instead of running the jquery code.</p>

<p>It works on IE and Chrome but not on Firefox.</p>

<p>Thank you for your help in advance.</p>

<p>Here is the output code:</p>

<pre><code>&lt;script type="text/javascript" language="javascript"&gt;
    $(document).ready(function() {

        $(".CatList li").click(function() {
            if ($(this).is(".selected")) {
                $(this).attr("class", "");
                $('#ctl00_ContentPlaceHolderRight_CatChanged').val(1);
                return false;
            }
            else {
                $(this).attr("class", "selected");
                $('#ctl00_ContentPlaceHolderRight_CatChanged').val(1);
                return false;
            }

        });


        $("#ctl00_ContentPlaceHolderRight_btnSave").click(function() {
            var elements = $("li.selected");
            if (elements.val() == null) {
                alert("You must select at least one category");
                return false;
            }
            else {
                elements.each(function() {
                    $('#ctl00_ContentPlaceHolderRight_CatChecked').val($('#ctl00_ContentPlaceHolderRight_CatChecked').val() + "," + $(this).attr("id"));
                    return true;
                });
            }
        });
    });
&lt;/script&gt;
</code></pre>

<p></p>

<p>
</p>
