0
我嘗試了這些選項:jQuery的預在WordPress網站上,選擇選擇選項下拉
jQuery(document).ready(function() {
jQuery("#adv_actions_shortcode").val("verhuur");
});
和
jQuery(document).ready(function() {
jQuery("#adv_actions_shortcode option[value=verhuur]").prop("selected", true);
});
URL是http://makelaarcorrect.test.hetkanbeteronline.nl/woningaanbod-verhuur/
我一定是忘了什麼東西,任何人都可以幫助我出去了?
jQuery(「#adv_actions_shortcode」)返回一個div。 div不具有值屬性 – Taplar
您似乎在使用某個插件來創建非標準下拉菜單。它們不是