locked
Problem to correct JavaScript RRS feed

Answers

  • User-707554951 posted

    Hi wmec

    '}' missing in your code

    Correct code should as below

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    <script>
        $(function () {
            var isreadonly = getUrlParameter("readonly");
            if (isreadonly == "y") {
                $("#mybutton").prop("disabled", true);
                $("#tb_birth").datepicker({
                    showOn: 'button',
                });
            }
        });
    </script>

    DatePicker reference:

    https://api.jqueryui.com/datepicker/

    Best regards

    Cathy

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 9, 2018 11:13 AM