<!DOCTYPE html>src="//libs.baidu.com/jquery/1.10.2/jquery.min.js"$(document).ready(function(){$("p").has("b,span").css("background-color","yellow");});Welcome to My HomepageMy name is Donald.I live in Duckburg.My best friend is Mickey.In this example, we select all p elements that have span or b elements inside of them.