How to get the last part in href or grandparent's id with jquery?
<p>A list is created dynamically. Now I want to get 93 or 94 etc which will be used for php function.</p>

<p>For example I added 93 in two ways as you can see below. In li class="93" or href="http://127.0.0.1/ci_backendpro2/index.php/messages/admin/changestatus/93"</p>

<p>Can anyone tell me how to get this number with jquery please?</p>

<p>Thanks in advance.</p>

<pre><code>...
...
&lt;li class="93"&gt;
&lt;div class="listbox"&gt;
&lt;span class="user"&gt;&lt;strong&gt;Administrator&lt;/strong&gt;&lt;/span&gt;
&lt;span class="date"&gt;2010-01-28 15:33:53&lt;/span&gt;
&lt;a href="http://127.0.0.1/ci_backendpro2/index.php/messages/admin/changestatus/93"
class="todo"&gt;to do&lt;/a&gt;&lt;span class="msg"&gt;test&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
...
</code></pre>

<p>I am working on the following code.</p>

<pre><code>//on todo event. this changes the status to compeleted

$(".todo").live('click', function(event){
event.preventDefault();
// alert("hei");
loading.fadeIn();

});  
</code></pre>

<p>This is a follow up question <a href="http://stackoverflow.com/questions/2155298/how-to-execute-another-action-after-generated-by-ajax-with-jquery">from here</a>. But the question itself is different.</p>
