javascript - Multiselect enable option does not work in jQuery -


$(document).ready(function() {    $('#fruits').multiselect({      name: 'fruits',      columns: 1,      placeholder: 'fruits'    });    $('#fruits').multiselect('disable');      $("#changestatuss").click(function() {      $("#fruits").multiselect('enable');      });  });
<div class="dropdown">    <p class="filter-text">fruits</p>    <select name="fruits" multiple id="fruits">      <option value="mango">mango</option>      <option value="apple">apple</option>      <option value="orange">orange</option>    </select>  </div>  <input type="button" id="changestatuss" value="try me" />

when run disable option works fine, dropdown gets disabled, enable option on event trigger not happening. tried other posts same problem still no use. tried refreshing plugin after enable option again no use.

you this:

$('#fruits option').removeattr('disabled'); 

Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -