jQuery - Find first or nth-child paragraph

0 votes
263 views
added Jul 3, 2019 in jQuery by LC Marshal Captain (25,790 points)
retagged Jul 4, 2019 by LC Marshal
contentPara = $('body.page-content ').find('p:first');

 

1 Response

0 votes
responded Jul 4, 2019 by LC Marshal Captain (25,790 points)
contentPara = $('body.page-content .news-article.news-details').find('p:nth-child(2)'),

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...