-4

i have a div,

 <div id="product-details">
      <li>lorem,ispum</li>
      <li>doler,emit</li>
      <li>emit,doler</li>
 </div>

I want to extract only the content between "li" into three variable. how it possible using jquery

shyama
  • 331
  • 3
  • 6
  • 15
  • 1
    Can you please share with us what methods you have tried? It looks like you're just asking us to do your work for you... It also appears that your HTML is somewhat invalid. You can't have `
  • ` elements outside of a `
      ` element.
  • – Lix Oct 28 '14 at 10:25
  • here you go : http://stackoverflow.com/questions/247023/get-an-array-of-list-element-contents-in-jquery – Sark Oct 28 '14 at 10:34