2 回答
TA贡献1811条经验 获得超4个赞
一些额外的谷歌搜索和实验,后来我找到了解决方案
$('#freeform_how_would_you_best_describe_your_companys_research_activity').change(function() {
var values = $(this).val();
console.log(values)
if(values.includes("Vaccines")|| values.includes("Therapeutics") || values.includes("Drug Discovery/Development")){
$('label[for="freeform_tell_us_more_about_your_research_activity"], select#freeform_tell_us_more_about_your_research_activity').slideDown();
} else {
$('label[for="freeform_tell_us_more_about_your_research_activity"], select#freeform_tell_us_more_about_your_research_activity').slideUp();
}
});
添加回答
举报