Code: Select all
How far along is the borrower in acquiring the property?
The borrower… *
[select* property-ownership-how-far-along-is-the-borrower-in-
acquiring-the-property-the-borrower first_as_label
"Please select…"
"is still looking for a property to acquire."
"has identified the property."
"has made an offer to purchase the property."
"has the property under contract to purchase."
"already owns the property."]
Bearbeiten: Ich habe die Lösung gefunden, füge das folgende Skript an einer beliebigen Stelle in deinem Code ein und ersetze „first_as_label“ durch „class:wpcf7-select“ (aber denke daran, „Bitte auswählen...“ in die erste Option zu ändern ist).
Code: Select all
(function ($) {
'use strict';
$(document).ready(function () {
var $select = $('.wpcf7-select');
$select.each(function(e){
var first_option = $(this).find('option').first();
if(first_option.attr('value') == 'Please select…'){
first_option.attr('disabled', true);
}
})
});
})(jQuery)
Mobile version