Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
My select2 dosnt working on my DDL .any body can help?

the code is here
XML
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="WebApplication1.Test" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="select2-3.5.0/select2.css" rel="stylesheet" />
    <script src="select2-3.5.0/select2.js"></script>


     <script>
         $(document).ready(function () {
             $("#e1").select2();
         });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <select id="e1" multiple="multiple">
            <option value="AL">1</option>

        <option value="WY">2</option>
             <option value="AL">3</option>

        <option value="WY">4</option>
             <option value="AL">5</option>

        <option value="WY">6</option>
             <option value="AL">7</option>


        <option value="WY">8</option>
        </select>
    </div>
    </form>
</body>
</html>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900