Part of my my PHP:
echo '<li rel="'.$rs['pic_id'].'"><a>'.$rs['name'].'</a> <a class="delete">Delete</a></li>';
jQuery:
$('#taglist li a.delete').bind('click', function(){
pic_id = $(this).attr("rel");
$.post('deletetag.php', pic_id, function(){
viewtag();
});
});
The button is not working, as in it didn't get converted into a button although i clearly included the 'a' tags in the html. Where is the problem?