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

2019-08-26 02:08发布

问题:

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

回答1:

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.



标签: jquery yii