Tag it help
Tag it help
First up, I'm using this script.
https://goodies.pixabay.com/jquery/tag-editor/demo.html
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...
jquery-ui.min.js:23 Uncaught TypeError: Cannot read property 'length' of undefined
at b.(anonymous function).(anonymous function)._trigger (
https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js:23:301)
at b.(anonymous function).(anonymous function).search (
https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js:241:194)
at
https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js:236:40
_trigger @ jquery-ui.min.js:23
search @ jquery-ui.min.js:241
(anonymous) @ jquery-ui.min.js:236
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' } ];
$('#people').tagEditor({
initialTags: [],
delimiter: ', ', /* space and comma */
placeholder: 'Enter tags ...',
autocomplete: {
delay: 0,
source: people,
position: { collision: 'flip' },
minLength: 2
}
});
Topic Participants
bevan
jakecigar