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('.datepi cker').dat epicker({
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>
<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('.datepi
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.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.