Create two alerts in jQuery from querying a string in a variable
<p>I have the following string as a variable:</p>

<pre><code>var name1 = '001-C6AL7_deepgreen_C3AE7_tankhakinavy_FJAG7_blackredmulti_FBAE7_tanbrown.jpg';
</code></pre>

<p>Which is provided by the server side configuration that I can't edit. With jQuery is there a way I can create an alert of all characters before and after a unique character (the hyphen '-'). </p>

<p>So ideally, it'd alert first with <code>001</code> and then the second alert would be <code>C6AL7_deepgreen_C3AE7_tankhakinavy_FJAG7_blackredmulti_FBAE7_tanbrown.jpg</code></p>
