opening pop up window throwing an error argument properties may not be accessed on strict mode RRS feed

  • Question

  • User351619809 posted

    am writing a CRUD in MVC. when the user clicks on add new to add a new row in the grid. I am trying to show a form in a pop up window. below is my code:

     function PopupForm(url) {
                var formDiv = $('<div/>');
                    .done(function (response) {
                        Popup = formDiv.dialog({
                            autoOpen: true,
                            resizable: false,
                            title: 'Fill Student Details',
                            height: 500,
                            width: 700,
                            close: function () {

    I checked the url and if I type the url directly in the browser, I can see the addnew form. In the debug mode, I can see error at : formDiv.dialog(). below is the image of the error:

    enter image description here

    I also looked in the browser after clicking on addnew and pressing F12 developers tool. below is the screen shot:

    enter image description here

    I am not sure where am I making the mistake.

    Any help will be greatly appreciated.

    Monday, September 7, 2020 7:20 PM


  • User351619809 posted

    I was using multiple versions of jquery and that caused the error.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 7, 2020 8:36 PM