Jquery date disable and avoid date duplication

已完成 已发布的 5 年前 货到付款
已完成 货到付款

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.

AJAX CSS JavaScript jQuery / Prototype Python

项目ID: #17567078

关于项目

17个方案 远程项目 活跃的5 年前

授予:

AGHR2018

Hi there, following is updated script, with Part 1 done. Will happy to complete Part 2, once got awarded :) $(function() { var date_selected = ''; $( "#datepicker" ).datepicker({ firstDay: 0, beforeShowDay: fu 更多

$25 USD 在1天内
(1条评论)
0.8

有17名威客正在参与此工作的竞标,均价$28/小时

majumderranit81

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

$30USD 在1天里
(99条评论)
6.3
Meagan26

Hello, I have read through your project and I am incredibly interested in taking on your project. I am an experienced developer and graphic designer with a diploma in the field of web development. I have been worki 更多

$45USD 在1天里
(82条评论)
6.4
saurabhabrol5

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 更多

$30USD 在1天里
(65条评论)
5.7
Ahmed818

Hello, i am very interested in this project i can do these jquery changes waiting your answer on chat Thank you

$10 USD 在0天内
(33条评论)
4.2
pinesucceed01

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 更多

$25USD 在1天里
(5条评论)
3.4
jratnawat510

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 更多

$30USD 在1天里
(6条评论)
2.7
doxan

Hi there. I have some questions: 1. Each file, named as selected date, will have what data? 2. File in file system is session storage? i mean that files have information about who(name user) and what is data 更多

$74 USD 在10天内
(8条评论)
2.7
skushagra

YOU NEED ME I have recently done a project which involves disabling selected dates and disbaling the past dates also USING JQUERY. I know what u r looking for and will do your work within hours. I have experience of m 更多

$11USD 在1天里
(7条评论)
2.6
hamzaelaoutar

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 更多

$15USD 在1天里
(3条评论)
1.0
webcircle

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

$25USD 在1天里
(1条评论)
0.0
nehashahdev264

FULL STACK, experienced and efficient Web Application Developer with a wide range of development skills to serve you.

$25USD 在1天里
(0条评论)
0.0