lateapex
asked on
jQuery UI how to get rid of inline function
Experts,
Environment: jQuery UI; Dot Net MVC
I'm using an inline function to access some data via json. How do I call the function from the onclick event instead of having it inline. Multiple links or buttons will need to call this function and send in a value?
I've attached the inline jQuery function. "addressID" is what I'll need to pass in.
Thanks!
Bob
Environment: jQuery UI; Dot Net MVC
I'm using an inline function to access some data via json. How do I call the function from the onclick event instead of having it inline. Multiple links or buttons will need to call this function and send in a value?
I've attached the inline jQuery function. "addressID" is what I'll need to pass in.
Thanks!
Bob
$.post("/Report/Address/" + addressId, "",function(data){$("#addressId").val(data.AddressId);$("#street").val(data.Street);$("#city").val(data.City);$("#state").val(data.State);$("#zip").val(data.Zip);}, "json");
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
$.post("/Report/Address/" + addressId, "", inlineFunctionReafactored)
function inlineFunctionReafactored(
{
}