123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494 |
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title></title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
- <script src="jquery.sumoselect.js"></script>
- <link href="sumoselect.css" rel="stylesheet" />
- <script type="text/javascript">
- $(document).ready(function () {
- window.asd = $('.SlectBox').SumoSelect({ csvDispCount: 3, captionFormatAllSelected: "Yeah, OK, so everything." });
- window.test = $('.testsel').SumoSelect({okCancelInMulti:true, captionFormatAllSelected: "Yeah, OK, so everything." });
- window.testSelAll = $('.testSelAll').SumoSelect({okCancelInMulti:true, selectAll:true });
- window.testSelAlld = $('.SlectBox-grp').SumoSelect({okCancelInMulti:true, selectAll:true });
- window.testSelAll2 = $('.testSelAll2').SumoSelect({selectAll:true });
-
- window.Search = $('.search-box').SumoSelect({ csvDispCount: 3, search: true, searchText:'Enter here.' });
- window.searchSelAll = $('.search-box-sel-all').SumoSelect({ csvDispCount: 3, selectAll:true, search: true, searchText:'Enter here.', okCancelInMulti:true });
- window.searchSelAll = $('.search-box-open-up').SumoSelect({ csvDispCount: 3, selectAll:true, search: false, searchText:'Enter here.', up:true });
- window.groups_eg_g = $('.groups_eg_g').SumoSelect({selectAll:true, search:true });
- });
- </script>
- <style type="text/css">
- body{font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;color:#444;font-size:13px;}
- p,div,ul,li{padding:0px; margin:0px;}
- </style>
- </head>
- <body>
- <h1>Simple</h1>
-
- <select name="somename" class="SlectBox" onclick="console.log($(this).val())" onchange="console.log('change is firing')">
- <option disabled="disabled" selected="selected">disabled selected</option>
- <!--placeholder-->
- <option value="volvo">Volvo</option>
- <option value="saab">Saab</option>
- <option value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- </select>
-
- <select class="SlectBox" disabled >
- <option value="volvo">Volvo</option>
- <option selected value="saab">Saab</option>
- <option value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- <option disabled value="opt1">option1</option>
- <option value="opt2">option2</option>
- <option value="opt3">option3</option>
- </select>
-
- <select class="SlectBox" placeholder="this is placeholder">
- <option selected="selected">selected</option>
- <option>Volvo</option>
- <option>Saab</option>
- <option value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- </select>
-
- This is a inline select element
- <select class="SlectBox" placeholder="this is placeholder" required="required">
- <option selected="selected">selected</option>
- <option>Volvo</option>
- <option>Saab</option>
- <option value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- <option>Volvo</option>
- <option>Saab</option>
- <option value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- <option>Volvo</option>
- <option>Saab</option>
- <option value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- <option>Volvo</option>
- <option>Saab</option>
- <option value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- </select>
- <h1>Multiple</h1>
- <form method="get">
-
- This is a inline select element
-
- <select multiple="multiple" placeholder="Hello im from placeholder" class="SlectBox" required>
- <option value="volvo">Volvo</option>
- <option value="saab">Saab</option>
- <option value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- <option value="bmw">BMW</option>
- </select>
- <div class="SumoSelect">
- <p class="CaptionCont SlectBoxa"><span>disabled selected</span><label><i></i></label></p>
- <div class="optWrapper multiple">
- <ul class="options">
- <li><span><i></i></span>
- <label>Volvo</label></li>
- <li><span><i></i></span>
- <label>saab</label></li>
- <li><span><i></i></span>
- <label>audi</label></li>
- <li><span><i></i></span>
- <label>bmw</label></li>
- <li><span><i></i></span>
- <label>porsche</label></li>
- <li><span><i></i></span>
- <label>ferrari</label></li>
- <li class="selected"><span><i></i></span>
- <label>hyundai</label></li>
- <li><span><i></i></span>
- <label>porsche</label></li>
- <li><span><i></i></span>
- <label>ferrari</label></li>
- <li><span><i></i></span>
- <label>hyundai is a good company but not too go0d !!!</label></li>
- <li><span><i></i></span>
- <label>porsche</label></li>
- <li><span><i></i></span>
- <label>ferrari</label></li>
- <li><span><i></i></span>
- <label>hyundai</label></li>
- </ul>
- </div>
- </div>
- <input type="submit" value="submit" />
- <br />
- <br />
- <br />
- <select multiple="multiple" placeholder="Hello im from placeholder" class="testsel">
- <option selected value="volvo">Volvo</option>
- <option value="saab">Saab</option>
- <option disabled="disabled" value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- <option value="bmw">BMW</option>
- <option value="porsche">Porche</option>
- <option value="ferrari">Ferrari</option>
- <option class="someclass" value="audi">Audi</option>
- <option class="someclass" value="bmw">BMW</option>
- <option class="someclass" value="porsche">Porche</option>
- <option value="ferrari">Ferrari</option>
- <option value="audi">Audi</option>
- <option value="bmw">BMW</option>
- <option value="porsche">Porche</option>
- <option value="ferrari">Ferrari</option>
- <option value="hyundai">Hyundai</option>
- <option value="mitsubishi">Mitsubishi</option>
- </select>
- </form>
- <br>
- <h1>Select all option</h1>
-
- <select multiple="multiple" placeholder="Hello im from placeholder" onchange="console.log($(this).children(':selected').length)" class="testSelAll">
- <option selected value="volvo">Volvo</option>
- <option value="saab">Saab</option>
- <option disabled="disabled" value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- <option selected value="bmw">BMW</option>
- <option value="porsche">Porche</option>
- <option value="ferrari">Ferrari</option>
- <option value="mitsubishi">Mitsubishi</option>
- </select>
-
- <select multiple="multiple" placeholder="Hello im from placeholder" onchange="console.log($(this).children(':selected').length)" class="testSelAll2">
- <option selected value="volvo">Volvo</option>
- <option value="saab">Saab</option>
- <option disabled="disabled" value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- <option selected value="bmw">BMW</option>
- <option value="porsche">Porche</option>
- <option value="ferrari">Ferrari</option>
- <option value="mitsubishi">Mitsubishi</option>
- </select>
-
- <h1>Groups</h1>
- <select multiple="multiple" placeholder="Hello im from placeholder" class="SlectBox-grp">
- <option selected value="saab">Saab</option>
- <option value="opel">Opel</option>
- <option disabled="disabled" value="mercedez">Mercedez</option>
- <optgroup label="US Brands">
- <option value="chrysler">Chrysler</option>
- <option value="gm">General Motors</option>
- <option value="ford">Ford</option>
- <option disabled="disabled" value="plymouth">Plymouth</option>
- </optgroup>
- <optgroup label="French Brands">
- <option value="citroen">Citroën</option>
- <option value="peugeot">Peugeot</option>
- <option selected value="renault">Renault</option>
- <option value="nissan">Nissan</option>
- </optgroup>
- <optgroup label="Italian brands">
- <option value="fiat">Fiat</option>
- <option value="alpha-Romeo">Alpha Romeo</option>
- <option value="lamborghini">Lamborghini</option>
- </optgroup>
- <optgroup disabled="disabled" label="German brands">
- <option value="audi">Audi</option>
- <option value="bMW">BMW</option>
- <option value="volkswagen">Volkswagen</option>
- </optgroup>
- <option value="aston-martin">Aston Martin</option>
- <option value="hyundai">Hyundai</option>
- <option value="mitsubishi">Mitsubishi</option>
- </select>
-
-
- <select placeholder="Hello im from placeholder" class="SlectBox">
- <option selected value="saab">Saab</option>
- <option value="opel">Opel</option>
- <option disabled="disabled" value="mercedez">Mercedez</option>
- <optgroup label="US Brands">
- <option value="chrysler">Chrysler</option>
- <option value="gm">General Motors</option>
- <option value="ford">Ford</option>
- <option disabled="disabled" value="plymouth">Plymouth</option>
- </optgroup>
- <optgroup label="French Brands">
- <option value="citroen">Citroën</option>
- <option value="peugeot">Peugeot</option>
- <option selected value="renault">Renault</option>
- <option value="nissan">Nissan</option>
- </optgroup>
- <optgroup label="Italian brands">
- <option value="fiat">Fiat</option>
- <option value="alpha-Romeo">Alpha Romeo</option>
- <option value="lamborghini">Lamborghini</option>
- </optgroup>
- <optgroup disabled="disabled" label="German brands">
- <option value="audi">Audi</option>
- <option value="bMW">BMW</option>
- <option value="volkswagen">Volkswagen</option>
- </optgroup>
- <option value="aston-martin">Aston Martin</option>
- <option value="hyundai">Hyundai</option>
- <option value="mitsubishi">Mitsubishi</option>
- </select>
-
-
- <select placeholder="Hello im from placeholder" class="groups_eg">
- <option class="hemant" selected value="saab">Saab</option>
- <option class="hemant" value="opel">Opel</option>
- <option disabled="disabled" value="mercedez">Mercedez</option>
- <optgroup label="US Brands">
- <option value="chrysler">Chrysler</option>
- <option value="gm">General Motors</option>
- <option value="ford">Ford</option>
- <option disabled="disabled" value="plymouth">Plymouth</option>
- </optgroup>
- <optgroup label="French Brands">
- <option value="citroen">Citroën</option>
- <option value="peugeot">Peugeot</option>
- <option selected value="renault">Renault</option>
- <option value="nissan">Nissan</option>
- </optgroup>
- <optgroup disabled="disabled" label="German brands">
- <option value="audi">Audi</option>
- <option value="bMW">BMW</option>
- <option value="volkswagen">Volkswagen</option>
- </optgroup>
- <optgroup label="Italian brands">
- <option value="fiat">Fiat</option>
- <option value="alpha-Romeo">Alpha Romeo</option>
- <option value="lamborghini">Lamborghini</option>
- </optgroup>
- <option value="aston-martin">Aston Martin</option>
- <option value="hyundai">Hyundai</option>
- <option value="mitsubishi">Mitsubishi</option>
- </select>
-
-
- <select multiple="multiple" placeholder="Hello im from placeholder" class="groups_eg_g">
- <option class="hemant" selected value="saab">Saab</option>
- <option class="hemant" value="opel">Opel</option>
- <option disabled="disabled" value="mercedez">Mercedez</option>
- <optgroup label="US Brands">
- <option value="chrysler">Chrysler</option>
- <option value="gm">General Motors</option>
- <option value="ford">Ford</option>
- <option disabled="disabled" value="plymouth">Plymouth</option>
- </optgroup>
- <optgroup label="French Brands">
- <option value="citroen">Citroën</option>
- <option value="peugeot">Peugeot</option>
- <option selected value="renault">Renault</option>
- <option value="nissan">Nissan</option>
- </optgroup>
- <optgroup disabled="disabled" label="German brands">
- <option value="audi">Audi</option>
- <option value="bMW">BMW</option>
- <option value="volkswagen">Volkswagen</option>
- </optgroup>
- <optgroup label="Italian brands">
- <option value="fiat">Fiat</option>
- <option value="alpha-Romeo">Alpha Romeo</option>
- <option value="lamborghini">Lamborghini</option>
- </optgroup>
- <option value="aston-martin">Aston Martin</option>
- <option value="hyundai">Hyundai</option>
- <option value="mitsubishi">Mitsubishi</option>
- </select>
- <h1>Search</h1>
- <select placeholder="Hello im from placeholder" class="search-box">
- <option class="hemant" selected value="saab">Saab</option>
- <option class="hemant" value="opel">Opel</option>
- <option disabled="disabled" value="mercedez">Mercedez</option>
- <optgroup label="US Brands">
- <option value="chrysler">Chrysler</option>
- <option value="gm">General Motors</option>
- <option value="ford">Ford</option>
- <option disabled="disabled" value="plymouth">Plymouth</option>
- </optgroup>
- <optgroup label="French Brands">
- <option value="citroen">Citroën</option>
- <option value="peugeot">Peugeot</option>
- <option selected value="renault">Renault</option>
- <option value="nissan">Nissan</option>
- </optgroup>
- <optgroup label="Italian brands">
- <option value="fiat">Fiat</option>
- <option value="alpha-Romeo">Alpha Romeo</option>
- <option value="lamborghini">Lamborghini</option>
- </optgroup>
- <optgroup disabled="disabled" label="German brands">
- <option value="audi">Audi</option>
- <option value="bMW">BMW</option>
- <option value="volkswagen">Volkswagen</option>
- </optgroup>
- <option value="aston-martin">Aston Martin</option>
- <option value="hyundai">Hyundai</option>
- <option value="mitsubishi">Mitsubishi</option>
- </select>
- <select placeholder="Hello im from placeholder" class="search-box">
- <option class="hemant" selected value="saab">Saab</option>
- <option class="hemant" value="opel">Opel</option>
- <option disabled="disabled" value="mercedez">Mercedez</option>
- <option value="aston-martin">Aston Martin</option>
- <option value="hyundai">Hyundai</option>
- <option value="mitsubishi">Mitsubishi</option>
- </select>
- <select multiple="multiple" placeholder="Hello im from placeholder" onchange="console.log($(this).children(':selected').length)" class="search-box">
- <option selected value="volvo">Volvo</option>
- <option value="saab">Saab</option>
- <option disabled="disabled" value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- <option selected value="bmw">BMW</option>
- <option value="porsche">Porche</option>
- <option value="ferrari">Ferrari</option>
- <option value="mitsubishi">Mitsubishi</option>
- </select>
- <h1>Over flow hidden test</h1>
- <style type="text/css">
- .sumo_name_will_become_class{
- position: absolute;
- }
- </style>
- <div style="background:#ccc; width:100px; height: 200px; overflow: hidden;">
- <select name="name_will_become_class" multiple="multiple" placeholder="Hello im from placeholder" onchange="console.log($(this).children(':selected').length)" class="search-box-sel-all">
- <option selected value="volvo">Volvo</option>
- <option value="saab">Saab</option>
- <option value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- <option selected value="bmw">BMW</option>
- <option value="porsche">Porche</option>
- <option value="ferrari">Ferrari</option>
- <option value="mitsubishi">Mitsubishi</option>
- </select>
- </div>
- <h1>Open upside</h1>
- <select multiple="multiple" placeholder="Hello im from placeholder"
- onchange="console.log($(this).val())"
- class="search-box-open-up">
- <option selected value='"volvo"'>Volvo</option>
- <option value="saab">Saab</option>
- <option value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- <option selected value="bmw">BMW</option>
- <option value="porsche">Porche</option>
- <option value="ferrari">Ferrari</option>
- <option value="mitsubishi">Mitsubishi</option>
- </select>
- <br />
- <br />
- <br /> <br />
- <br />
- <br /> <br />
- <br />
- <br /> <br />
- <br />
- <br /> <br />
- <br />
- <br /> <br />
- <br />
- <br /> <br />
- <br />
- <br /> <br />
- <br />
- <select multiple="multiple" name="somename10" class="testselect10">
- <option value="volvo">Volvo</option>
- <option >Saab</option>
- <option disabled="disabled" value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- <option value="bmw">BMW</option>
- <option disabled="disabled" value="porsche">Porche</option>
- <option selected="selected" value="ferrari">Ferrari</option>
- <option selected="selected" value="hyundai">Hyundai</option>
- <option value="mitsubishi">Mitsubishi</option>
- </select>
- <table class="auto-style5">
- <tr>
- <td class="auto-style6">
- <ul><li>
- <input id="Button1" type="button" value="Attach SumoSelect" onclick="$('.testselect10').SumoSelect();" />
- </li>
- <li>
- <input id="Button2" type="button" value="Detach SumoSelect" onclick="$('.testselect10')[0].sumo.unload();" />
- </li>
- <li>
- <input id="Button3" type="button" value="Add item at index 1" onclick="$('.testselect10')[0].sumo.add('New Item',1);" />
- </li>
- <li>
- <input id="Button4" type="button" value="Remove item at index 1" onclick="$('.testselect10')[0].sumo.remove(1);" />
- </li>
- <li>
- <input id="Button5" type="button" value="Select item at index 1" onclick="$('.testselect10')[0].sumo.selectItem(1);" />
- </li>
- <li>
- <input id="Button6" type="button" value="UnSelect item at index 1" onclick="$('.testselect10')[0].sumo.unSelectItem(1);" />
- </li>
- <li>
- <input id="Button7" type="button" value="Disable item at index 1" onclick="$('.testselect10')[0].sumo.disableItem(1);" />
- </li>
- <li>
- <input id="Button8" type="button" value="Enable item at index 1" onclick="$('.testselect10')[0].sumo.enableItem(1);" />
- </li>
- <li>
- <input id="Button9" type="button" value="Toggle Enable disable" onclick="$('.testselect10')[0].sumo.disabled = !$('.testselect10')[0].sumo.disabled" />
- </li>
- </ul>
- <br />
- <br /> <br />
- <br />
- <br /> <br />
- <br />
- <br /> <br />
- <br />
- <br /> <br />
- <br />
- <br /> <br />
- <br />
- <br /> <br />
- <br />
- <br /> <br />
- <br />
- </td>
- <td>
- </td>
- </tr>
- </table>
-
- </body>
- </html>
|