Tag it help

Tag it help

First up, I'm using this script.

Below is my code, I've included these scripts and they link okay.

<link rel="stylesheet" href="CSS/jquery.tag-editor.css">
<script src="Resources/jquery.caret.min.js"></script>
<script src="Resources/jquery.tag-editor.min.js"></script>

THis is my error which I get AFTER I type 2 characters...
  1. jquery-ui.min.js:23 Uncaught TypeError: Cannot read property 'length' of undefined
  2.     at b.(anonymous function).(anonymous function)._trigger (https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js:23:301)
  3.     at b.(anonymous function).(anonymous function).search (https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js:241:194)
  4.     at https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js:236:40
  5. _trigger @ jquery-ui.min.js:23
  6. search @ jquery-ui.min.js:241
  7. (anonymous) @ jquery-ui.min.js:236


  8. var people = [ <?php require 'db.php'; $result = mysqli_query($link2, "SELECT * FROM `people` ORDER BY `people`.`personName` ASC"); while ($row = $result->fetch_assoc()){ echo "{ value: '" . $row['personName'] . "', data: '" . $row['ID'] . "' },"; } ?> { value: 'No Person', data: '0' } ];
  9.       $('#people').tagEditor({
  10. initialTags: [],
  11. delimiter: ', ', /* space and comma */
  12. placeholder: 'Enter tags ...',
  13. autocomplete: {
  14. delay: 0,
  15. source: people, 
  16. position: { collision: 'flip' },
  17. minLength: 2
  18. }
  19. });