Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>jQuery Example</title>
  
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
  <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
  
  <script>
    $(function() {
      $("#datepicker").datepicker({
        onSelect: function() { 
          var dateObject = $(this).datepicker('getDate');
          $('#inp_datepicker')[0].value = convertDateToString(dateObject);
        }
      });
      
      $("#datepicker2").datepicker({
        onSelect: function() { 
          var dateObject = $(this).datepicker('getDate');
          $('#inp_datepicker2')[0].value = convertDateToString(dateObject);
        }
      }); 
      
    $( "#datepicker3" ).datepicker();
  });
  </script>
</head>
<body>
<input id="inp_datepicker" name="startDateField">
<div id="datepicker"></div>
<input id="inp_datepicker2" name="endDateField">
<div id="datepicker2"></div>
  
<input id="inp_datepicker" name="dateField3">
<div id="datepicker3" class="hasDatepicker"></div>
  
  
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
dirtyd77pro
0viewers