Showing posts with label jquery. Show all posts
Showing posts with label jquery. Show all posts

Wednesday, 22 February 2017

Javascript Example To Call an Ajax

Example code in javascript to call an ajax

function changeDeliveryTime() {

    var deliveryMethod = $('#deliveryMethod').val();
    var delAddress = $('#delAddress').val();
    var schedule = $('#scheduleko').val();
 $.ajax({
  type : "GET",
  url : "/ajaxchangedeliveryschedule.do?deliveryMethod=" + deliveryMethod + "&address=" +  delAddress + "&scheduleId=" + schedule,         
  success : function(response) {
   //successfully change the time
   //alert('successfully change the time');   
  },
  error : function(e) {
   alert('Error changing time schedule: ' + e);
  }
 });
}

Share:

JQuery set maximum date on date input.

This entry will set the max date to 13yrs and below normally use for registration for above 13yrs old only http://stackoverflow.com/questions/16232594/datepicker-set-date-during-page-load
Share:

Saturday, 28 May 2016

JQuery Code To Delete A Row

JQuery Code to delete a row





JSP Code

Share:

Popular Posts

Recent Posts

Pages

Powered by Blogger.

About Me

My photo
For the past 10 years, I've been playing with codes using PHP, Java, Rails. I do this for a living and love new things to learn and the challenges that comes with it. Besides programming I love spending time with friends and family and can often be found together catching the latest movie or planning a trip to someplace I've never been before.