I am new to jQuery plugin creation and created a plugin for my project [Tumblr style tagging].
[I know there are so many plugins available but i want to create myself :D]
here it goes
(function($) {
$.fn.Tagger = function ()
{
this.each(function()
{
//codes goes here
});
};
})(jQuery);
so that after doing this i can do something like this to create taggable input
$("#IdOfTheElement").Tagger();
Now i created the UI and need to get the value of the UI.
For example user types meta as google , yahoo ,msn ....
so that i need to get the values as google,yahoo,msn .
i want to know the method of doing this [not the code]
something like this available ?
$("#ID").Tagger("value"); //returns the values
or
$("#ID").Tagger().val(); // is this possible ?
Hope you understand the question ,all comments/suggestions are welcome.
Please help me complete.
Thank you.
Update
Please check this fiddle http://jsfiddle.net/pNqUL/