Jquery date disable and avoid date duplication
$10-30 USD
Pagado a la entrega
There are 2 parts
1) Disable already selected date from the calendar
2) If user logs back in, Disable his selection of dates- his date selection is stored in a file with the name of the selected date
This is the script I am currently using to display only certain dates. Now I need part1 and 2.
PLEASE PING ME IF YOU HAVE ANY QUESTIONS!! I AM MORE THAN HAPPY TO ANSWER ALL OF THEM!
<script>
var date_selected = ''
$( function() {
$( "#datepicker" ).datepicker({
firstDay: 0,
beforeShowDay: function (date) {
var monday = new Date();
monday.setHours(0,0,0,0);
monday.setDate(monday.getDate() + 1 - (monday.getDay() || 7));
var thursday = new Date(monday);
thursday.setDate(monday.getDate() + 3);
var today = new Date();
var d = new Date();
let hours =d.setHours(d.getHours());
let minutes = d.setMinutes(d.getMinutes());
alert(hours,minutes)
if (hours < 14 && minutes < 31){
today.setDate(today.getDate());
return [(date >= today && date <= thursday), ''];
}
else{
today.setDate(today.getDate() -1);
return [(date >= today && date <= thursday), ''];
}
} });
$( "#datepicker" ).on( "change", function() {
var selected = $(this).val();
$('#selected_dates').val($('#selected_dates').val() + selected + '; ');
date_selected = selected;
});
} );
Part 1) Example:-
In the current calendar, a user(Shekhar) can click on 14 th August multiple times. What needs to be done is disable the date that has been selected by the user. If the user clicks on 15th, 15th august should also be disabled and so on. (Remember, user can select multiple dates)
Part 2) Example:-
A user selects 14th and 15th August and clicks submit. After 2 hours, user comes back and logs back in. The calendar should not display 14th and 15th again(As those dates have been previously selected!). The value of user selection will be stored in a file named 08-14-2018 and 08-15-2018 with Shekhar as input.(Remember 14 and 15 are the dates selected) So when Shekhar(unique name accross the system) logs back in, 14th and 15th august should be disabled on his calendar.
Nº del proyecto: #17567078
Sobre el proyecto
17 freelancers están ofertando un promedio de $28 por este trabajo
Hi there! I have more than 7 years of experience in javascript/jquery development. Please do not ignore me as a new profile. I can give you more quality work on time. Regards Ranit Majumder
Hello. I would like to thank you for taking enough time read my proposal. I have just checked your project post in detail. I have over 5 years experience in PHP. I believe in quality and professionalism. I am hig Más
Hello, i am very interested in this project i can do these jquery changes waiting your answer on chat Thank you
Dear Prospective Client, As based on my initial review I can confirm its feasibility & as I am great fit technically and have good understanding of the domain & your requirement & would submit a detailed response so Más
Hi, I can fix your issue and Start immediately. I am expert web developer and having 4 years experience in Website development area. My skills including PHP, Javascript, Jquery, Ajax, HTML5, CSS3, Bootstrap, M Más
Hi I'm a software engineer/Front End Developer, I have worked on so many projects from different natures (JAVA/Javascript/JQuery/HTML/CSS...) I can definitely do this, and for a very reasonable price. Don't he Más
I am having 10+years of experience in PHP, JAVASCRIPT/JQUERY and have worked a lot on date functionlaity. Let me know the details and I will fix the problem
FULL STACK, experienced and efficient Web Application Developer with a wide range of development skills to serve you.