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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: