Click here to Skip to main content
15,888,351 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: jquery addClass and removeClass not working Pin
Richard Deeming6-Feb-18 2:29
mveRichard Deeming6-Feb-18 2:29 
GeneralRe: jquery addClass and removeClass not working Pin
Mou_kol6-Feb-18 2:45
Mou_kol6-Feb-18 2:45 
GeneralRe: jquery addClass and removeClass not working Pin
Richard Deeming6-Feb-18 2:54
mveRichard Deeming6-Feb-18 2:54 
GeneralRe: jquery addClass and removeClass not working Pin
Mou_kol7-Feb-18 20:43
Mou_kol7-Feb-18 20:43 
GeneralRe: jquery addClass and removeClass not working Pin
Richard Deeming8-Feb-18 0:51
mveRichard Deeming8-Feb-18 0:51 
GeneralRe: jquery addClass and removeClass not working Pin
Mou_kol8-Feb-18 1:18
Mou_kol8-Feb-18 1:18 
GeneralRe: jquery addClass and removeClass not working Pin
Richard Deeming8-Feb-18 1:23
mveRichard Deeming8-Feb-18 1:23 
QuestionAutomatic calculation of Days and Filling of Months, Year Pin
Kiran Kumar31-Jan-18 9:13
Kiran Kumar31-Jan-18 9:13 
I am a novice to JavaScript and am trying to learn it out. I am struck with the automatic calculation of days and automatic insertion of month, calendar week based on the user entered data.

I searched and I got to calculate the differences only by static not by the user entered dates. Can anyone help me out here please.

I have 6 Text boxes.

In 1st textbox "Year" user enters a specific date (dd.mm.yy) 
2nd text box needs to be automatically filled with the respective calendar week 
3rd text box needs to be automatically filled with the respective month (Jan, Feb, Mar)
4th text box needs to be automatically filled with the respective year

5th text box user enters another date (dd.mm.yy)
6th text box needs to be automatically filled with the number of days difference between 2nd entered date and first entered date.

My code is as below.



>
$(function() { 
$( "#datepicker").datepicker({ dateFormat: 'dd.mm.yy' }); 
$("#datepickerend").datepicker({ dateFormat: 'dd.mm.yy'});
  
});
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>

<div>
<table border="0">
<tr>
<td>Date: <input type=text name="date" id="datepicker"></td>
</tr>
<tr>
<td>CW: <input type=text name="CW"></td>
</tr>
<tr>
<td>Month: <input type=text name="Month"></td>
</tr>
<tr>
<td>Year: <input type=text name="Year"></td>
</tr>
<tr>
<td>Ending Date: <input type=text name="enddate" id="datepickerend"></td>
</tr>
<tr>
<td>Days: <input type=text name="days"></td>
</tr>
</table>
</div>

AnswerRe: Automatic calculation of Days and Filling of Months, Year Pin
F-ES Sitecore1-Feb-18 0:12
professionalF-ES Sitecore1-Feb-18 0:12 
QuestionEdit an Embed COde Api to implement on a website Pin
Member 1363973526-Jan-18 18:32
Member 1363973526-Jan-18 18:32 
Rant[REPOST] Edit an Embed COde Api to implement on a website Pin
Richard Deeming29-Jan-18 10:37
mveRichard Deeming29-Jan-18 10:37 
QuestionHow to open a java script in a android phone Pin
Member 1361672010-Jan-18 9:07
Member 1361672010-Jan-18 9:07 
AnswerRe: How to open a java script in a android phone Pin
debasish mishra23-Jan-18 19:09
professionaldebasish mishra23-Jan-18 19:09 
Questioni need fileration of html table and pagenation using Jquery or javascript but should support by IE8 Pin
irfankundi78631-Dec-17 6:37
irfankundi78631-Dec-17 6:37 
AnswerRe: i need fileration of html table and pagenation using Jquery or javascript but should support by IE8 Pin
Richard Deeming8-Jan-18 6:51
mveRichard Deeming8-Jan-18 6:51 
Questionjavascript code to disable window button in html page?? Pin
LOKENDRA YADAV29-Dec-17 22:14
LOKENDRA YADAV29-Dec-17 22:14 
AnswerRe: javascript code to disable window button in html page?? Pin
Richard MacCutchan30-Dec-17 21:43
mveRichard MacCutchan30-Dec-17 21:43 
AnswerRe: javascript code to disable window button in html page?? Pin
Vincent Maverick Durano3-Jan-18 19:44
professionalVincent Maverick Durano3-Jan-18 19:44 
Questionjavascript code to disable window button in html page?? Pin
LOKENDRA YADAV29-Dec-17 22:14
LOKENDRA YADAV29-Dec-17 22:14 
AnswerRe: javascript code to disable window button in html page?? Pin
Richard MacCutchan30-Dec-17 21:43
mveRichard MacCutchan30-Dec-17 21:43 
QuestionGear generator Java Pin
Member 1358988322-Dec-17 0:34
Member 1358988322-Dec-17 0:34 
AnswerRe: Gear generator Java Pin
Richard MacCutchan22-Dec-17 1:15
mveRichard MacCutchan22-Dec-17 1:15 
QuestionI need to regenerate the excel columns as well whenever the drop down changes. javscript mvc Pin
Member 1336752712-Dec-17 22:26
Member 1336752712-Dec-17 22:26 
QuestionHow to build a simple web crawler that gets events for a future date? Pin
Member 135663578-Dec-17 21:34
Member 135663578-Dec-17 21:34 
AnswerRe: How to build a simple web crawler that gets events for a future date? Pin
Richard MacCutchan8-Dec-17 22:29
mveRichard MacCutchan8-Dec-17 22:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.