0 Replies - 253 Views - Last Post: 05 October 2013 - 04:51 AM

#1 rodneyqc  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 130
  • Joined: 02-August 13

Help passing value

Posted 05 October 2013 - 04:51 AM

Quote

Hello im rodney, i would like to ask if how can i pass the value from my selected jquery datepicker in a variable.
because i plan to retrieve records depend on the date that i chose in the datepicker which needs to be compare in database. But i dont know how to retrieve the selected date and pass it in a php variable.


<!DOCTYPE HTML>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>jQuery UI Datepicker - Display inline</title>
  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/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.3/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css" />
  <script>
  $(document).ready(function() {
  $('#datepicker').datepicker( {
    onselect: function(date) {
        alert(date);	
    },
  });
});
  </script>
</head>
<body>
Date: <div id="datepicker"></div>
</body>
</html>




Is This A Good Question/Topic? 0
  • +

Page 1 of 1