Answers for "how to disabled dropdown item in contact form 7"

1

contact form 7 select disabled option

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

Disable form first dropdown option

<!-- disable form first dropdown option -->
<script type="text/javascript">
  $( "form option:first-child" ).attr("disabled","disabled");
</script>
Posted by: Guest on August-16-2021

Code answers related to "how to disabled dropdown item in contact form 7"

Browse Popular Code Answers by Language