0
如何找到特定的itemprop,如果它有特定的输出/文本,它应该改变其他class/div css。jquery if span [itemprop = employmentType] has = specific text/output
$("span[itemprop='employmentType']").each(function(){
if($(this).text()=='Third Party Job')
{
$('.wpjb-job-apply').css('display','none');
}
});
如果(有此文字)第三方职位添加显示:none to class .wpjb-job-apply – 2014-08-28 08:14:24
@ChristianKobbernagel ...我想这就是你想要的.. – 2014-08-28 08:19:24
$ ('span [itemprop ='employmentType']“)。each(function(){if($(this).text()=='Third Party Job') {('。wpjb-job-apply ')的CSS(' 显示”, '无'); } }); – 2014-08-28 08:28:58