Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6582199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:15:03+00:00 2026-05-25T16:15:03+00:00

I am using jQuery’s Datepicker for a textbox as below. I have restricted the

  • 0

I am using jQuery’s Datepicker for a textbox as below. I have restricted the days a user is allowed to select but my question is if there is a way to have a special text appeared in the textbox along with each selected date.

For example, if a user selects day number 1, then there is shown Monday, 19 September 2011 How to make it Monday, 19 September 2011 and a special name for the Monday here?

The same goes for all the available to select days like Tuesday, 20 September 2011 and a special name for the Tuesday here?

Thank you for this

    <script>
$(document).ready(function() {

var date = new Date();
var m = date.getMonth(), d = date.getDate(), y = date.getFullYear();

$('#datepicker').datepicker({
        minDate: new Date(y, m, d),
        dateFormat: 'DD, d MM yy',
        beforeShowDay: function(date){ 
        var day = date.getDay(); 
        return [day == 1 || day == 4 || day == 5,""];
        }
});

$( "#datepicker" ).datepicker( $.datepicker.regional[ "el" ] );

});
    </script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:15:03+00:00Added an answer on May 25, 2026 at 4:15 pm

    Add this array:

    var weekday=new Array(7);
    weekday[0]="Sunny Sunday";
    weekday[1]="Manic Monday";
    weekday[2]="Terrible Tuesday";
    weekday[3]="Wild Wednesday";
    weekday[4]="Thorny Thursday";
    weekday[5]="Freaky Friday";
    weekday[6]="Sadistic Saturday";
    

    Then add this method:

        onSelect: function(dateText, inst) {
            var day = new Date(dateText).getDay();
            $(this).val(dateText + ': ' + weekday[day]);
        },
    

    Demo: http://jsfiddle.net/AlienWebguy/Xm6Dm/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using jQuery, is there a way to select all tag that reference a specific
Using jquery I have a clicking tab mechanism that are nothing but anchor tags
Using Jquery Ajax i have an entry script index.php This script lets the user
Using jQuery validation plugin but it has no CSV validation. I have made an
Using jQuery version 1.4.2 and Validation plugin version 1.8.1 I have a textbox that
Using jQuery , how can I dynamically set the size attribute of a select
Using jQuery, how do you bind a click event to a table cell (below,
Using jQuery, how do you check if there is an option selected in a
Using jQuery, how would you find elements which have a particular style (eg: float:
using jquery v1.3.2 and jQuery UI 1.7.1 I have 1 tab control with 3

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.