Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assigned tags not working for Tag Handler by ioncache #41

Open
uneebmeer opened this issue Sep 27, 2016 · 0 comments
Open

assigned tags not working for Tag Handler by ioncache #41

uneebmeer opened this issue Sep 27, 2016 · 0 comments

Comments

@uneebmeer
Copy link

I'm using this plugin called TagHandler. Link: http://ioncache.github.io/Tag-Handler here's the code

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="css/jquery.taghandler.css" />
    <script type="text/javascript" src="js/jquery-3.1.1.js"></script>
    <script type="text/javascript" src="js/jquery.taghandler.js"></script>
    <title>tags</title>
</head>
<body>
<!--<div class="tagHandler">
    <ul id="basic_tag_handler" class="tagHandlerContainer">
    <li class="tagInput">
        <input class="tagInputField" type="text">
    </li>
    </ul>
</div>
-->
<div class="tagHandler">
    <ul id="array_tag_handler" class="tagHandlerContainer">
        <li class="tagInput">
            <input class="tagInputField ui-autocomplete-input" type="text" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true">
        </li>
    </ul>
</div>

<script>
   // $("#basic_tag_handler").tagHandler();
    $("#array_tag_handler").tagHandler({
        assignedTags: [ 'C', 'Perl', 'PHP' ],
        availableTags: [ 'C', 'C++', 'C#', 'Java', 'Perl', 'PHP', 'Python' ],
        autocomplete: true
    });

</script>
</body>
</html>

It is taking the values of assignedTags, The attribute availableTags opens a dropdown to select the specified values by availableTags as per website but in my case it is not opening the dropdown what can be the issue?

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

No branches or pull requests

1 participant