Text not showing correctly in JQuery UI DatePicker Control because of conflict with Bootstrap 3x RRS feed

  • Question

  • User-826336654 posted

    Hi All,

    I have created a new ASP.NET MVC 5. Then I add JQuery UI Themes 'Redmond' to it. Finally, I add JQuery UI DatePicker to the Date of Birth field.

    The problem is that DatePicker doesn't show year and month "text" as shown in the screen shot below. Can anybody help me?

    Note1: The problem is because of Bootstrap but don't know how to fix it. 
    Note2: The "base" theme is working correctly but the problem is "Redmond" theme.

    Screen shot:

    Layout Code

    <!DOCTYPE html>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>@ViewBag.Title - My ASP.NET Application</title>
        <link href="~/Content/Site.css" rel="stylesheet" type="text/css" />
        <link href="~/Content/themes/Redmond/jquery-ui.css" rel="stylesheet" />
        <link href="~/Content/bootstrap.css" rel="stylesheet" type="text/css" />
        <script src="~/Scripts/modernizr-2.8.3.js"></script>
        <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    @Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
                <div class="navbar-collapse collapse">
                    <ul class="nav navbar-nav"></ul>
        <div class="container body-content">
            <hr />
                <p>&copy; @DateTime.Now.Year - My ASP.NET Application</p>
        <script src="~/Scripts/jquery-3.3.1.js"></script>
        <script src="~/Scripts/jquery-ui-1.12.1.js"></script>
        <script src="~/Scripts/jquery.validate.js"></script>
        <script src="~/Scripts/jquery.validate.unobtrusive.js"></script>
        <script src="~/Scripts/moment.js"></script>
        <script src="~/Scripts/bootstrap.js"></script>
        <script src="~/Scripts/Site.js"></script>

    Thanks in advance.

    Friday, April 19, 2019 12:20 PM


  • User475983607 posted

    I'm pretty sure that jQuery UI is not totally compatible with Bootstrap.  You should use the Bootstrap datepicker.  Just Google for APIs.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 19, 2019 1:47 PM