Finding the first disabled list view item programatically.

Finding the first disabled list view item programatically.

Hi, if I have the following code how would I find the first disabled item with code returning the eq() of the element?

  1. <ul data-role="listview" data-inset="true" id="pageOptions">
  2.        <li><a href="#">Page 1</a></li>
  3.        <li><a href="#">Page 2</a></li>
  4.        <li><a href="#" class="disabled">Page 3</a></li>
  5.        <li><a href="#" class="disabled">Page 4</a></li>
  6.  </ul>
Thanks in advance.