Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

tags gets appended with time when using it with angular #230

Closed
khyamay opened this issue May 13, 2015 · 4 comments
Closed

tags gets appended with time when using it with angular #230

khyamay opened this issue May 13, 2015 · 4 comments

Comments

@khyamay
Copy link

khyamay commented May 13, 2015

I am trying to use this plugin with angular but having few issues. I have created a directive to use it, but when changing the view, id on the input seems to be append with time like "tags1431552377968_tagsinput". Is there a reason for this and how can I avoid it??

@khyamay
Copy link
Author

khyamay commented May 14, 2015

oh well this seems to do that trick
var id = $(this).attr('id');
$('#'+id+'_tag');

@khyamay khyamay closed this as completed May 14, 2015
@veerendra456
Copy link

hi,
same issue i am getting .i am giving id(technology) for input field.
but when added code like:
$('#technology').tagsInput({ .... });
it giving like: tags1462968029982_tag
so validation not working in this scenario.

@khyamay
Copy link
Author

khyamay commented May 11, 2016

yeah it adds the time to for each tags input, u can access it by

var id = $(this).attr('id');
$('#'+id+'_tag');

coz it will hide #technology, so u can use the above method to make your validation work

@veerendra456
Copy link

i am getting that issue when used with jquery...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants