Clearble Text Field plugin, looses focus in IE7 & IE8

Clearble Text Field plugin, looses focus in IE7 & IE8

Hi,
Using the Clearble Text Field plugin v0.3.2 and have come across a problem with IE7 & IE8.
The first time a text field with clearableTextField is used, when then 1st character is typed the text field loses focus.
Futher uses are fine till page is reloaded.


Works fine in Firefox 4, Chrome 10, Safari 5 and Opera 11

I created a very very simple page to rule out anything else on the page and still the same.

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.     <title>test</title>
  5.     <link rel="stylesheet" href="jquery.clearableTextField.css" type="text/css" />
  6.     <script type="text/javascript" src="jquery-1.5.2.min.js"></script>
  7.     <script type="text/javascript" src="jquery.clearableTextField.js"></script>
  8.     <script type="text/javascript">
  9.         $(document).ready(function () {
  10.             $("#TextBox1").clearableTextField();
  11.         });
  12.     </script>
  13. </head>
  14. <body>
  15.     <form id="form1">
  16.         <input name="TextBox1" type="text" id="TextBox1" />
  17.     </form>
  18. </body>
  19. </html>

Cheers,
Mike