• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to use tagify plug-in to populate text field with dynamic labels

 
James Dekker
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have the following code which (resides in a dialog box) and serves as an event listener
for check boxes. Am able to populate / de-populate text field with values from check box
by checking or unchecking the individual check boxes:

However, when I use try to use the JQuery Tagify plug-in it only creates one "tagified dynamic label"
inside the text field but doesn't create another label when I click on an additional check box.
Also, when I uncheck the original checkbox, it doesn't remove the original label.

Here's my code using the JQuery tagify plug-in (all I did was keep everything the same as above
but called the tagify function on the text field):

I get this JavaScript error in the browser:

jquery.tagify.js: 'options' is undefined, line 71

In the source code this line reads:

Its stating that options.key is undefined...

To view the jquery.tagify.js complete source, please click here.

What am I possibly doing wrong? Is there a way I can create an "else" for example:



Would really appreciate it if someone could help me with this...

Thank you for taking the time to read this.
 
James Dekker
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it working like this:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic