GithubHelp home page GithubHelp logo

Comments (6)

pesseyjulien avatar pesseyjulien commented on May 11, 2024 1

perfect, thanks a bunch for the quick fix !

from tagify.

ycv005 avatar ycv005 commented on May 11, 2024 1

Hey there, I am working with removing all Tags with Jquery version of your code, I have no issue but have a doubt. Why below is happening?
Not Working Code-
var input = $('[name=tags]').tagify(); input.removeAllTags();
Working Code-
var input = $('[name=tags]').tagify(); var jqTagify = input.data('tagify'); jqTagify.removeAllTags();

from tagify.

yairEO avatar yairEO commented on May 11, 2024

Thanks for letting me know brother. Apparently it was a problem with the demo's code.
I've updated the index.html file and now it's ok.

BTW, I think the 404 you saw was GitHub's error since they host everything including the demo page.

from tagify.

morrow95 avatar morrow95 commented on May 11, 2024

@ycv005
Just came across this as I was looking for something similar. Here is an example of what I use that works and does not require saving as vars :

$('#s2Tags').tagify({
	placeholder: 'add keyword',
	backspace: false,
	editTags: {
		clicks: 1
	}
});

$('#s2TagsRemove').on('click', function (e) {
	e.preventDefault();
	$('#s2Tags').data('tagify').removeAllTags();
});

You should have used input.data('tagify').removeAllTags(); in your 'not working' code.

from tagify.

jjxtra avatar jjxtra commented on May 11, 2024

removeAllTags doesn't clear persisted storage. How to fix?

from tagify.

yairEO avatar yairEO commented on May 11, 2024

@jjxtra - well, who store the data in the persisted storage in the first place...? 😉

from tagify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.