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
  • 700,868
  • 160
  • 1,392
  • 1,356
neenkart
  • 158
  • 2
  • 21

0 Answers0