Link to home
Start Free TrialLog in
Avatar of yingwho
yingwho

asked on

date picker

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.core.js"></script>
<script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.datepicker.js"></script>
 <script type="text/javascript">
     $(document).ready(function() {
         $('input').filter('.datepicker').datepicker({
             changeMonth: true,
             changeYear: true,
             showOn: 'both',
             buttonImage: 'x.gif',
             buttonImageOnly: true
         });
             .datepicker( 'hide' , [speed] )
     });  

 </script>  
</head>
<body>
<table cellpadding="2" cellspacing="0">
      <tr>
            <td>
                  town
            </td>
            <td>                  
                  <input type="text" name="town" size="15"  />
            </td>
      </tr>
      <tr>
            <td>
                  date
            </td>
            <td>
                  <input type="text" name="da" size="15" class="datepicker" />
            </td>
      </tr>
      <tr>
            <td>
                  name
            </td>
            <td>
                  <input type="text" name="name" size="15" />
            </td>
      </tr>
</table>    
</body>
</html>

i need to hide the datepicker popup when i am on other fields based on the focus.
pl suggest.

Open in new window

SOLUTION
Avatar of Terry_focus
Terry_focus
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial