tags:

views:

18

answers:

1

Hi,

I have added jquery js file to a web page in .NET 1.1 web app.

And added this script

<script type="text/javascript">
    $(function() {

     $("input").blur(function() {
      $(this).attr("background-color", "#000000");
     });
    });
</script>

But when I tab off a textbox nothing happens.

This should work right in 1.1??

Malcolm

+2  A: 

You need to use css not attr:

 $(this).css("background-color", "#000000");
seth