title: jQuery query builder - cannot get it to work - Uncaught TypeError: Cannot set property 'extendext' of undefined
body: <p>Uncaught TypeError: Cannot set property 'extendext' of undefined</p>
  
  <p>Have tried all ways to get query builder to work but have been unable to (after 2 tough days) any help would be appreciated</p>
  
  <p>Getting query-builder.standalone.min.js:7 Uncaught TypeError: Cannot set property 'extendext' of undefined</p>
  
  <p>Shouldn't get this if using standalone version of query builder</p>
  
  <p>My index.html is below:</p>
  
  <p>Thanks in advance and regards
  Toby</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;base href="/"&gt;&lt;/base&gt;
      &lt;link href="https://querybuilder.js.org/assets/css/style.css" rel="stylesheet"&gt;&lt;/link&gt;
      &lt;link href="https://netdna.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet"&gt;&lt;/link&gt;
      &lt;link href="https://cdn.jsdelivr.net/npm/jQuery-QueryBuilder/dist/css/query-builder.default.min.css" rel="stylesheet"&gt;&lt;/link&gt;
      &lt;script src="https://cdn.jsdelivr.net/npm/jQuery-QueryBuilder@2.5.2/dist/js/query-builder.standalone.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
      var rules_basic = {
        condition: 'AND',
        rules: [{
          id: 'price',
          operator: 'less',
          value: 10.25
        }, {
          condition: 'OR',
          rules: [{
            id: 'category',
            operator: 'equal',
            value: 2
          }, {
            id: 'category',
            operator: 'equal',
            value: 1
          }]
        }]
      };
  
      $('#builder').queryBuilder({
        plugins: ['bt-tooltip-errors'],
  
        filters: [{
          id: 'name',
          label: 'Name',
          type: 'string'
        }, {
          id: 'category',
          label: 'Category',
          type: 'integer',
          input: 'select',
          values: {
            1: 'Books',
            2: 'Movies',
            3: 'Music',
            4: 'Tools',
            5: 'Goodies',
            6: 'Clothes'
          },
          operators: ['equal', 'not_equal', 'in', 'not_in', 'is_null', 'is_not_null']
        }, {
          id: 'in_stock',
          label: 'In stock',
          type: 'integer',
          input: 'radio',
          values: {
            1: 'Yes',
            0: 'No'
          },
          operators: ['equal']
        }, {
          id: 'price',
          label: 'Price',
          type: 'double',
          validation: {
            min: 0,
            step: 0.01
          }
        }, {
          id: 'id',
          label: 'Identifier',
          type: 'string',
          placeholder: '____-____-____',
          operators: ['equal', 'not_equal'],
          validation: {
            format: /^.{4}-.{4}-.{4}$/
          }
        }],
        rules: rules_basic
      });
      /****************************************************************
                              Triggers and Changers QueryBuilder
      *****************************************************************/
  
      $('#btn-get').on('click', function() {
        var result = $('#builder').queryBuilder('getRules');
        if (!$.isEmptyObject(result)) {
          alert(JSON.stringify(result, null, 2));
        }
        else{
          console.log("invalid object :");
        }
        console.log(result);
      });
  
      $('#btn-reset').on('click', function() {
        $('#builder').queryBuilder('reset');
      });
  
      $('#btn-set').on('click', function() {
        //$('#builder').queryBuilder('setRules', rules_basic);
        var result = $('#builder').queryBuilder('getRules');
        if (!$.isEmptyObject(result)) {
          rules_basic = result;
        }
      });
  
      //When rules changed :
      $('#builder').on('getRules.queryBuilder.filter', function(e) {
          //$log.info(e.value);
      });
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="builder"&gt;&lt;/div&gt;
      &lt;button class="btn btn-success" id="btn-set"&gt;Set Rules&lt;/button&gt;
      &lt;button class="btn btn-primary" id="btn-get"&gt;Get Rules&lt;/button&gt;
      &lt;button class="btn btn-warning" id="btn-reset"&gt;Reset&lt;/button&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>