[jQuery] $("#id").attr("ondblclick", "New Value"); is not work in all browser.

[jQuery] $("#id").attr("ondblclick", "New Value"); is not work in all browser.


Hello,
After load this page, double click is not work in IE 7.0, Firefox
3.0.7. But in Opera 9.64 is work. What wrong? Please advice.
<html>
    <head>
        <script src="jquery-1.3.2.js"></script>
    </head>
    <body>
        <div id="a1" ondblclick="alert('1');" style="width: 100px; height:
100px; background-color:
#000;">
        </div>
        <script>
            $(document).ready( function() {
                $("#a1").attr("ondblclick", "alert('2')");
            });
        </script>
    <body>
</html>