Im using Tag-It. Is there any way to display tags generated from database, using dynamic id? I've used class instead of id before but it will only output the last row on all input fields.
while($row=mysql_fetch_array($result){
<input name="tags" id="inputUpTag<?php echo $row["ID"]?>" value="$row[ID]">
<ul id="ulUpTags<?php echo $row["ID"]?>"></ul>
}
This is the tag-it javascript that creates tagsInput:
$('#ulUpTags'+document.getElementByID("$row["ID"]")).tagit({
autocomplete: {
delay: 0, minLength: 2, source: 'autocompleteSearch.php'
},
singleField: true
singleFieldNode: $('#inputUpTag'+document.getElementByID("$row["ID"]"))
});