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