getting id of list in jquery apprise
<p>i want to get id of <code>li</code> tag for getting of confirm, if confirm is true. get id and residerct that.
for example :</p>

<pre><code>&lt;li class="tryitx" onclick="tryit('are you delete this?', {'confirm':true});" id='&lt;?echo '?'.$del; ?&gt;'&gt;DELETE&lt;/a&gt;&lt;/li&gt;
&lt;li class="tryitx" onclick="tryit('are you delete this?', {'confirm':true});" id='&lt;?echo '?'.$del; ?&gt;'&gt;DELETE&lt;/a&gt;&lt;/li&gt;
&lt;li class="tryitx" onclick="tryit('are you delete this?', {'confirm':true});" id='&lt;?echo '?'.$del; ?&gt;'&gt;DELETE&lt;/a&gt;&lt;/li&gt;
</code></pre>

<p><code>id</code>s are link of redirects
JQUERY:</p>

<pre><code>&lt;script&gt;
function tryit_alert(string, args) {

    apprise(string, args, function(r) {

        if(r) 
        //window.location = "http://aou.ir/manage/preForm/test.php";
             alert($('.tryitx').attr('id'));
    });
}
&lt;/script&gt;
</code></pre>
