The attribute selector of jquery notes finds page elements that start with a certain condition

$("div[id]") finds all div elements with an id attribute.
$("div[id='ajaxa']") finds the div element with id ajaxa.
$("div[id!='ajaxa']") Finds div elements whose id is not ajaxa.
$("div[id^='ajaxa']") Finds div elements with id starting with ajaxa.
$("div[id$='ajaxa']") finds div elements with id ending in ajaxa.
$("div[id*='ajaxa']") Finds the div element whose id contains ajaxa.
$("div[id^='ajaxa']") Finds div elements with id starting with ajaxa.
$("div[id][class='ajaxa']") Finds div elements with id attribute and class ajaxa.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326284680&siteId=291194637