0 Replies - 321 Views - Last Post: 20 December 2015 - 04:20 AM

#1 TLsel7   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 22-January 15

How to remember the value (tags) entered in a select2 ?

Posted 20 December 2015 - 04:20 AM

First of all I'm new to this.
I want the previously added values to be visible in the drop down list to make it faster and easier for users while adding tags.

- Also if you notice in the attached picture the 'x' sign to the left of the keywords is messed up.
- I'm using a (10,10 px).png



<html>

  <head>
    <script src="jquery-1.11.3.js"></script>
    <script src="select2.js"></script>
    <script>
      $(function(){
        $('#select').select2({
         tags: []
        });
      });
    </script>
	
    <link rel="stylesheet" href="select2.css">
  </head>

  <body>
    <input type="hidden" name="select[]" id="select" style="width:600px">
  </body>

</html>

Attached image(s)

  • Attached Image


Is This A Good Question/Topic? 0
  • +

Page 1 of 1