My code is not working. Can anyone tell me what's wrong with it? I don't get any result from this code. Please help.
<a href="" id="navigation-edit">EDIT MENU</a>
$(function(){
$("a#navigation-edit").on(("click"),function(){
$.getJSON("ajax/navigation-edit.php", function(data) {
$("#result").html(data);
});
});
});
navigation-edit.php
<?PHP
$result_NavDel = $mysqli->query("SELECT * FROM navigation_dynamic");
while($row = $result_NavDel->fetch_assoc()){
$data[] = "<li class='animated bounce infinite'><a href='?".$row['url']."'>".$row['menu']."</a></li>";
}
$implode='<ul class="nav navbar-nav" id="deleteNav">'`.`implode($data).'</ul>';
echo json_encode($implode);
?>