How to extract/parse HTML using Microdata

后端 未结 2 1348
梦毁少年i
梦毁少年i 2021-01-01 07:02

I am pretty new to Microdata.

I have a HTML string with Microdata. I am trying to figure out if it\'s possible to extract the required information dynamically using

2条回答
  •  孤城傲影
    2021-01-01 07:29

    Check this Fiddle

    $("span[itemprop='name']").each(function(e) {
        if ($(arguments[1]).text() == 'Blendmagic') {
            alert($($("meta[itemprop='ratingValue']")[e]).attr('content'));       
        }    
    });
    

提交回复
热议问题