JavaScript lastIndexOf()
<p>In C# I can do this</p>

<pre><code>string ID = "ContentPlaceHolderDefault_MainSiteSectionArea_MyPagePlaceHolder_Item4_FavoritAmusementCalender_6_deleteRight_2";   
ID = ID.Substring(ID.LastIndexOf("_") + 1); 
</code></pre>

<p>to return the last int <code>2</code></p>

<p>How can I most easily do this in jQuery/JavaScript</p>

<p>The id is created dynamic and can for now be up to 3 digit.</p>

<p>Thanks in advance.</p>
