Click here to Skip to main content
12,454,164 members (55,340 online)

JavaScript

 
QuestionRe: Java Script Pin
ProgramFOX14-Dec-12 1:33
memberProgramFOX14-Dec-12 1:33 
QuestionRe: Java Script Pin
ryanb3118-Dec-12 5:06
memberryanb3118-Dec-12 5:06 
AnswerRe: Java Script Pin
manoj s sherje19-Dec-12 1:01
membermanoj s sherje19-Dec-12 1:01 
AnswerRe: Java Script Pin
ryanb3119-Dec-12 1:37
memberryanb3119-Dec-12 1:37 
AnswerRe: Java Script Pin
vbmike19-Dec-12 4:28
membervbmike19-Dec-12 4:28 
QuestionUsing datePicker to disable dates already selected Pin
xnaLearner11-Dec-12 3:39
memberxnaLearner11-Dec-12 3:39 
Questionjquery tabslideout plugin and wired behavior Pin
Tridip Bhattacharjee9-Dec-12 21:13
memberTridip Bhattacharjee9-Dec-12 21:13 
AnswerRe: jquery tabslideout plugin and wired behavior Pin
Mayor Daily17-Dec-12 4:22
memberMayor Daily17-Dec-12 4:22 
GeneralRe: jquery tabslideout plugin and wired behavior Pin
Tridip Bhattacharjee18-Dec-12 0:55
memberTridip Bhattacharjee18-Dec-12 0:55 
QuestionNeed help understanding binding Pin
Steve Bondy7-Dec-12 14:00
memberSteve Bondy7-Dec-12 14:00 
QuestionText replace Pin
rakeshs3126-Dec-12 23:06
memberrakeshs3126-Dec-12 23:06 
AnswerRe: Text replace Pin
Richard MacCutchan7-Dec-12 0:43
mvpRichard MacCutchan7-Dec-12 0:43 
GeneralRe: Text replace Pin
rakeshs3129-Dec-12 5:40
memberrakeshs3129-Dec-12 5:40 
QuestionJQuery datePicker SelectMultiple format dd/mm/yy Pin
xnaLearner6-Dec-12 0:37
memberxnaLearner6-Dec-12 0:37 
Hey Guys,
Got the datePicker working to select multiple dates. When the user selects multiple dates and closes the calendar the textbox displays the dates in the format:
Thur Jan 03 2013 00:00:00 GMT +0000
Fri Jan 03 2013 00:00:00 GMT +0000
Sat Jan 04 2013 00:00:00 GMT +0000,

My Code:
<script>
 
           $("#HolidayDate").addClass('date-pick');
           $('.date-pick').datePicker//({dateFormat: 'dd-mm-yy'}).val();
           (
                   {
                       createButton: false,
                       displayClose: true,
                       closeOnSelect: false,
                       selectMultiple: true,
                   }
           )
           .bind(
               'click',
               function () {
                   $(this).dpDisplay();
                   this.blur();
                   return false;
               }
           )
           .bind(
               'dateSelected',
               function (e, selectedDate, $td, state) {
                   console.log('You ' + (state ? '' : 'un') // wrap
                       + 'selected ' + selectedDate);
               }
           )
           .bind(
               'dpClosed',
               function (e, selectedDates) {
                   console.log('You closed the date picker and the ' // wrap
                       + 'currently selected dates are:');
                   console.log(selectedDates);
                   $('#HolidayDate').val( selectedDates );
               }
           );
 
   </script>
----------------------------------------

However I would like the date to display as dd-mm-yy.
If I use the commented out line
$('.date-pick').datePicker//({dateFormat: 'dd-mm-yy'}).val();

The textbox will return the date in the correct format but now it only allows me to select one date at a time.

Please advice?

Thanks
AnswerRe: JQuery datePicker SelectMultiple format dd/mm/yy Pin
srinivas nv6-Dec-12 21:50
membersrinivas nv6-Dec-12 21:50 
GeneralRe: JQuery datePicker SelectMultiple format dd/mm/yy Pin
xnaLearner10-Dec-12 0:04
memberxnaLearner10-Dec-12 0:04 
QuestionDelete selected rows by table id using javascript Pin
Member 88023075-Dec-12 8:05
memberMember 88023075-Dec-12 8:05 
AnswerRe: Delete selected rows by table id using javascript Pin
Deepak Kr15-Dec-12 18:45
memberDeepak Kr15-Dec-12 18:45 
GeneralRe: Delete selected rows by table id using javascript Pin
Member 88023076-Dec-12 6:20
memberMember 88023076-Dec-12 6:20 
AnswerRe: Delete selected rows by table id using javascript Pin
Graham Breach6-Dec-12 21:41
memberGraham Breach6-Dec-12 21:41 
QuestionHTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 1:09
mvpJohn Simmons / outlaw programmer3-Dec-12 1:09 
AnswerRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 5:00
memberGraham Breach3-Dec-12 5:00 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 5:22
mvpJohn Simmons / outlaw programmer3-Dec-12 5:22 
GeneralRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 6:29
memberGraham Breach3-Dec-12 6:29 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 6:40
mvpJohn Simmons / outlaw programmer3-Dec-12 6:40 
GeneralRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 6:48
memberGraham Breach3-Dec-12 6:48 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 9:09
mvpJohn Simmons / outlaw programmer3-Dec-12 9:09 
GeneralRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 11:02
memberGraham Breach3-Dec-12 11:02 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 15:20
mvpJohn Simmons / outlaw programmer3-Dec-12 15:20 
GeneralRe: HTML5 Javascript Issue Pin
Media2r18-Dec-12 0:51
memberMedia2r18-Dec-12 0:51 
GeneralRe: HTML5 Javascript Issue Pin
BrainiacV18-Dec-12 3:46
memberBrainiacV18-Dec-12 3:46 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 5:29
mvpJohn Simmons / outlaw programmer3-Dec-12 5:29 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer4-Dec-12 1:06
mvpJohn Simmons / outlaw programmer4-Dec-12 1:06 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer4-Dec-12 7:31
mvpJohn Simmons / outlaw programmer4-Dec-12 7:31 
GeneralRe: HTML5 Javascript Issue Pin
Zaf Khan19-Dec-12 20:36
memberZaf Khan19-Dec-12 20:36 
AnswerRe: HTML5 Javascript Issue Pin
Zaf Khan19-Dec-12 20:42
memberZaf Khan19-Dec-12 20:42 
QuestionCatching Exceptions in Javascript Pin
Ved Yo29-Nov-12 14:43
memberVed Yo29-Nov-12 14:43 
QuestionPartial Overlay to cover ajax request Pin
Sentenryu29-Nov-12 1:51
memberSentenryu29-Nov-12 1:51 
QuestionHow to get value from TD Pin
Chitttapa26-Nov-12 10:03
memberChitttapa26-Nov-12 10:03 
Questionhelp me please Pin
doa'a_9224-Nov-12 4:16
memberdoa'a_9224-Nov-12 4:16 
AnswerRe: help me please Pin
Leon Munir25-Nov-12 13:46
memberLeon Munir25-Nov-12 13:46 
GeneralRe: help me please Pin
J4amieC25-Nov-12 21:13
memberJ4amieC25-Nov-12 21:13 
GeneralRe: help me please Pin
Leon Munir26-Nov-12 2:06
memberLeon Munir26-Nov-12 2:06 
GeneralRe: help me please Pin
J4amieC26-Nov-12 5:30
memberJ4amieC26-Nov-12 5:30 
GeneralRe: help me please Pin
Marcus Kramer26-Nov-12 5:37
memberMarcus Kramer26-Nov-12 5:37 
GeneralRe: help me please Pin
doa'a_9226-Nov-12 9:28
memberdoa'a_9226-Nov-12 9:28 
Questiononmouseover and document.getElementById Pin
SRJ9223-Nov-12 4:18
memberSRJ9223-Nov-12 4:18 
AnswerRe: onmouseover and document.getElementById Pin
J4amieC23-Nov-12 4:48
memberJ4amieC23-Nov-12 4:48 
GeneralRe: onmouseover and document.getElementById Pin
SRJ9223-Nov-12 5:49
memberSRJ9223-Nov-12 5:49 
AnswerRe: onmouseover and document.getElementById Pin
jainsachin30-Nov-12 9:17
memberjainsachin30-Nov-12 9:17 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 29 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid