<script type="text/javascript"> (function( $ ) { 'use strict'; $(document).ready( function(){ var $option = $('option:contains("first-option")'); $option.attr('disabled',true); }); })(jQuery) </script>