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

  • Home
  • SEARCH
  • 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 9019151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:42:25+00:00 2026-06-16T04:42:25+00:00

I am using Jquery UI Datepicker like below in Asp.net MVC Application. Question How

  • 0

I am using Jquery UI Datepicker like below in Asp.net MVC Application.

Question

  1. How to block or remove calender ? (I don’t need it)

  2. Still I want other stuff on that Datepicker. Such as date format,default date, etc

Reason

Not Allow user to select a date from calender.But Need to maintain date format.

HTML

<td>
     @Html.EditorFor(m => m.CheckIn.DateCheckIn)
</td>

Jquery Code

 $('#CheckIn_DateCheckIn').datepicker({ dateFormat: 'm/d/yy', altFormat: 'yy-m-d',  onSelect: function () { $(this).parents('form:first').submit(); } });

UI

enter image description here

  • 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-06-16T04:42:27+00:00Added an answer on June 16, 2026 at 4:42 am

    One way of “disabling” the calendar part is to set showOn to "button":

    $("#datepicker").datepicker({ showOn: "button" });
    

    And then just hide the button with css:

    .ui-datepicker-trigger { display: none; }​
    

    See http://jsfiddle.net/ukHLT/


    Or just set the disabled html attributes:

    @Html.TextBoxFor(m => m.CheckIn.DateCheckIn, new { disabled = "disabled" })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the jquery libs in my ASP.NET MVC application in the head of
I'm using jQuery's datepicker plugin in .NET ASP MVC3 intranet application. User that use
I am using Asp.Net Mvc3 and the unobtrusive jquery validation. I'd like to have
I am using the jQuery datepicker( http://keith-wood.name/datepick.html ) and I would like to set
I am using jquery datepicker, please see below code $(document).ready(function() { $(.txtDate).datepicker({ showOn: 'button',
I am using jquery datepicker for my application. I want to highlight the dates
I am using the jQuery datepicker on a text input field and I don't
I'm using a jquery datepicker in one of my project and I need to
I am using jquery datepicker http://jqueryui.com/datepicker/#default . I have to input fields like from
Im using Jquery datepicker and also a PhP calender in my webpage. I want

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.