0

Is there any way I can use "or" in css selector like we use in Xpaths? I need to extract titles from certain pages. In some pages title will be in h3 tag and in some pages it will be h4.

I tried the following code, it didnt return anything.

$('h3[class="toUpper"] or h4[class="bold"]').text().trim()
BoltClock
  • 665,005
  • 155
  • 1,345
  • 1,328
neenkart
  • 148
  • 2
  • 18

0 Answers0