3

Using JQuery I can get the contents of a meta with name PageID like this:

$("meta[name='PageID']").attr('content')

How about when the name can have two different values e.g. PageID1 or pageId2 then I'd like to do:

$("meta[name='PageID1' || name='PageId2']").attr('content')

but this doesn't work.

SkyWalker
  • 12,709
  • 16
  • 76
  • 161
  • You're right. I had the chance to either edit or mark my question as duplicate. I chose to edit it and not let it be duplicate as I was interested to know how to solve it using a logical disjunction with JQuery. But you are correct in my original OP I need the case insensitiveness and this is answered in the referred question. Thank you! – SkyWalker May 11 '16 at 22:11

1 Answers1

2

You can select it like this: $("meta[name='PageID1'],meta[name='PageId2']").attr('content')

SkyWalker
  • 12,709
  • 16
  • 76
  • 161
Alon Eitan
  • 11,914
  • 8
  • 48
  • 57