customize "Chosen" plugin for a specific select box

I want to insert the Chosen plugin to a specific post in a wordpress site. This is my script:

jQuery(document).ready(function($) { 
  $('select:not(#mo-fonts)').chosen({ width:"95%" });
});
<select class="Nom"> 
  <option value="">--- Select ---</option>

I don’t know what I have to change in the jQuery script to specify the plugin just for this select box (not other select box). I tried this code but it didn’t work:

jQuery(document).ready(function($) { 
  $('Nom').chosen({ width:"95%" });
});

Read more here: customize "Chosen" plugin for a specific select box

Leave a Reply

Your email address will not be published. Required fields are marked *