title: Index of children in parent of a specific class
body: <p>A parent container called ".content" contains various children and these children are created dynamically.  I am trying not to do an each loop and compare the children with the one clicked.   </p>
  
  <p>This code tells me how many children of the type I have.</p>
  
  <pre><code>$(this).parents(".content").children(".r-s, .r-f").length
  </code></pre>
  
  <p>say an example where the above length equals 5, I need to know WHICH in either (0-4 or 1-5) children was selected.</p>
  
  <p>I have been looking at jquery .filter() hoping for an answer, .is() also seems promising.  Any suggestions?</p>