jQuery is () function

/ * * Definition and Usage: 
* IS () method for a user to view the selected element is equipped with a selector. * Remarks: * The parent element tag judgment <p> tag whether the <div> tag. * If you are prompted!
* / IF ($ ( "p") parent () IS ( "div.". )) { Alert ( "parent element is p div" ); }

 

Guess you like

Origin www.cnblogs.com/tanjiyuan/p/11374108.html