title: split string only on first instance of specified character
body: <p>In my code I split a string based on <code>_</code> and grab the second item in the array.</p>
  
  <pre><code>var element = $(this).attr('class');
  var field = element.split('_')[1];
  </code></pre>
  
  <p>Takes <code>good_luck</code> and provides me with <code>luck</code>. Works great!</p>
  
  <p>But, now I have a class that looks like <code>good_luck_buddy</code>. How do I get my javascript to ignore the second <code>_</code> and give me <code>luck_buddy</code>?</p>
  
  <p>I found this <code>var field = element.split(new char [] {'_'}, 2);</code> in a c# stackoverflow answer but it doesn't work. I tried it over at jsFiddle...</p>