Comments (7)
Any news? Because right now it just drive me crazy :D To get tags that was entered, I issue following undocumented code (founded reviewing SOURCE HTML of the following page http://textextjs.com/manual/examples/tags.html ...):
var textext = $('#keywords').textext()[0];
var tags = textext.hiddenInput().val();
Should be some easy / well documented way to get entered tags, what you think??? :)
from jquery-textext.
+1
Simple question: How do you add TextExt tags programmatically?
On http://textextjs.com/manual/examples/tags.html I see an addTags(tags) method... but can't find the pointer to call it correctly.
from jquery-textext.
@seanodotcom @evereq Thanks for feedback, I released "emergency" 1.2.0 which just includes this feature, please see the demo
http://textextjs.com/manual/examples/tags-adding.html
from jquery-textext.
excellent and quick! Thanks! :)
from jquery-textext.
Side note: if you select order of plugins for example like "plugins: 'prompt focus autocomplete arrow tags'" than yes, feature works. However if you use order like 'tags prompt focus autocomplete arrow' new feature do NOT work for some reason :) Spend few minutes today to figure out this :D Seems you may need to fix it in next version ;-)
from jquery-textext.
I used this to add any text remaining in the input as a tag upon form submission (something I think is expected behavior for tag inputs, by the way).
I can confirm evereq's issues as well: the feature will expect 'tags' to be the last plugin specified in the options parameters. Otherwise, it will select whichever plugin is last instead.
$('#form_element').submit(function(){
var input_element = $('.textext-input-element');
input_element.textext()[0].tags().addTags([ input_element.val() ]);
input_element.val("");
});
from jquery-textext.
Hi evereq!
Try it:
$('#keywords').textext()[0].tags().addTags([ { name: 'Hello', id: '1' },{ name: 'Shit', id: '2' } ]);
from jquery-textext.
Related Issues (20)
- Line-height issue
- How to validate empty textbox with jquery validate method
- Tags: input value is deleted when Enter is pressed, not when tag is added HOT 1
- Install
- Validate on blur HOT 2
- Initialization issue HOT 2
- outerHeight and outerWidth need to be updated
- Endless ajax-requests after focus HOT 1
- Same option can select again
- destroy
- Better integration with bootstrap style HOT 3
- taking too time to show suggestion autocomplete and sometime browser also hanged HOT 1
- show suggestion when textbox is focused.
- 绑定id和name,显示的是name,如何在标签完成后,就马上获得id
- 如何获取标签的回车事件
- How can I limit character lenght for AJAX call?
- Add a tag of subset of the Autocomplete suggestion word.
- Tagging some parts of a text
- Width not calculated correctly HOT 1
- About update 2.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-textext.