Error's looping through jquery returned data
<p>What I am trying to do is loop through all of the entries and process the selected post to delete. I must not be doing it right because I can't even get console.dir() to even process. Any help?</p>

<pre><code>// process delPost()
$(".firstLastName").click(function() {
    delPost();
});
    function delPost() {
    // this function deletes the current post
    var entryId_1 = $("#delpost").attr("delpost");
    var entryId = $("#entryId"+entryId_1).val();
    var dataString = '&amp;entryId=' + entryId;
        console.dir(entryId);
        $.ajax({
        type: "POST",
        dataType: "JSON",
        url: "&lt;?=base_url()?&gt;index.php/regUserDash/delPost",
        data: dataString,
        json: {postedToWall: true},
        success: function(data) {
        if(data.postDeleted == true) {
            // hide the post
            $("#entryId"+entryId_1).remove();
        }
      }
   });
}

&lt;a class="firstLastName font1 link-font1"&gt;&lt;b&gt;&lt;?php echo $row-&gt;firstname . " " . $row-&gt;lastname; ?&gt;&lt;/b&gt;&lt;/a&gt;

&lt;span class="link-font2" delpost="&lt;?php echo $row-&gt;idwallPosts; ?&gt;" href="javascript:void(0)" id="delPost"&gt;Delete Post&lt;/b&gt;&lt;/span&gt;
</code></pre>
