TypeError: $.param.querystring is not a function i

2019-08-26 01:58发布

I am using textfield for search

        <?php echo CHtml::textField('companysearch', '', 
       array("onkeyup" => "$.fn.yiiGridView.update('company-table', {type: 'GET', 
       data: {companyName: this.value}});",
        "class" => "txt-srh", "placeholder" => "Search")); ?>

While doing this I am getting error TypeError: $.param.querystring is not a function

hw can i escape from this

标签: jquery yii
1条回答
We Are One
2楼-- · 2019-08-26 02:17

check if you included jquery.js more than once in your page. I had the same error and the reason was that yii already added the jquery.js script so no needs to include it yourself.

查看更多
登录 后发表回答