If this Helps:
$(function() {
$("#submit").click(function ()
{
$.ajax ({
url: this.href,
type: 'POST',
data: { input: $('#dropdown').val() },
success: function (result) { alert(result.name); },
error: function () { alert("error"); }
});
return false;
});
});
[HttpPost]
public ActionResult submit(string input)
{
var result = _db.Ingredients.Where(i => i.IngredientName == input);
return Json(new { name = "Hello There" });