'object doesn't support property or method $

I have an html table in which i'am showing a result of my json object.

<article id="article2" style="top: 50px !important;">
            <div class="content" id="content_resultat">
                <table width="100%" class="display" id="resultats_client"></table>
            </div>
        </article>

I added a click button,double click button functionalities that are working fine in my dev environment

 $(document).on("click", "#resultats_client tbody tr", function () {
        debugger;
            if ($(this).hasClass("selected")) {
                $(this).removeClass("selected");
            } else {
                resultats_client.$("tr.selected").removeClass("selected");
                $(this).addClass("selected");
            }
        });
        // double click
        $(document).on("dblclick", "#resultats_client tbody tr", function () {
         debugger;
                var row = resultats_client.row(this).data();
                if (row == undefined) return;
                var parameters = {};
                parameters["id"] = row.id;
                OREKA.SDK.formUtils1.openEntityForm("account", null, parameters, null);
            });

But in my Test environment i am getting this error enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source