jQuery $.post() Method in MVC4

mage pwns

New Member
I'm using jQuery $.post() Method to make a call to a method in the controller but it's not hitting that method when this function is called. Anyone know how to work jQuery $.post() Method?\[code\]function OpenDialog(StateCode) { $.post("~/Home/LoadCityViewModel", { stateCode: StateCode }, function () { $("#dialog-modal").dialog("open"); }); return false; }private ListingsViewModel LoadCityViewModel(string stateCode) { return null; }\[/code\]
 
Back
Top