title: How to find a div with part of a class name and get remaining part of that class name?
body: <p>There are several divs on my page with classes <code>my_widget-2</code>, <code>my_widget-8</code>, etc. 
  What JavaScript or jQuery code can I use to get the number "2" (ie. the number that appends the <em>first</em> matching widget)?</p>
  
  <p>Note: If I were to write this question again, I would change the order of these class names and ask for a way to get "8" in order to avoid giving the impression that I want the smaller number.</p>