How can I select the html of first three <p> tags in a <div> (or even four). I want to have a function where I could send the number of paragraphs and it would select their html into a variable? any help please.
How can I select the html of first three <p> tags in a <div>
Share
You can use the
lt()selector:Demo: http://jsfiddle.net/Guffa/gzuvf/