attr doesn work with IE7

attr doesn work with IE7

Hello Folks,

we have a recent problem using the attr method to add a onclick parameter. In FF it works perfect but not in IE 7.

Does anyone have an idea?
Thanks in advance!
Thalal

Here is the code:
------------8<-------8<-------8<----------8<---------

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>onmouseover test</title>

<script type="text/javascript" src="/JQGridCRUD/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
   \$(document).ready(function(){

       \$("#Test").attr("onmouseover", "alert('hallo')");
                   
   });

</script>
</head>

<body>
   <p onmouseover="alert('hallo')"> ... without jQuery </p>

   <p ID="Test"> ... with jQuery </p>

</body>

</html>

------------8<-------8<-------8<----------8<---------