I am calling a controller method from java script the method works fine i can see the alter but while debugging the control never goes to the controller method .. here is the 
script

```
<script type="text/javascript">
    function confirmDelete(customerID) {

        if (confirm('Are you sure you want to Delete?')) {
            $.ajax({
                url: 'Home/Delete',
                data: { ID: customerID },
                success: function () {
                    alert('Added');
                }
            });
        }
        else {
            // Do nothing!
        }
    }
</script>

```

here is the "Home" controller method

```
public ActionResult Delete(String ID)
        {
            data.Delete(ID);
            return View("Home");
        }

```

**Update:**

and here is how i am calling this JS function

```
<a href="#"  onclick="confirmDelete(<%=clientsModel.UserID %>);" style=" cursor:pointer;"> <img alt="delete" src="../../Images/icons-png/delete-black.png" /> </a>

```