Datepicker through jquery.


 $(document).ready(function() {
              
             $( "#start" ).datepicker({ dateFormat: 'yy-mm-dd' });
              $( "#end" ).datepicker({ dateFormat: 'yy-mm-dd' });
              $("#chart").click(function(){
                $.ajax({
                type: "post",
                url: "buildreport1.jsp",
                data: {
                    input: $('#start').val(),
                    output: $('#end').val()
                },
                success: function(response){
                    alert('hi');
                $('#output').html(response);
                }
                  });
              });
            });

Popular posts from this blog

Simple Sign up design. Android.

Cart page design in android.

Set Date on jDateChooser and retrieve record from database.