I am populating dropdown list using JQuery. whenever i selected any item from that dropdown (ie Drop down selected index change) i want to run an another JQuery Function... Here is my controller..
public ActionResult PopulateTest(string Id)
{
// Here i want to call the JQuery function
return PartialView("Details");
}
and my JQuery Function...
$(function () {
var a = document.getElementById("HidStatus").value;
var b = parseInt(a);
$("#progressbar").progressbar({
value: b,
max: 100
});
});
i think this might be helpful to you..just try this...
public ActionResult PopulateTest(string Id)
{
// Here i want to call the JQuery function
page << "foo()" // call your function here after "<<"
or you can use call method
page.call:foo();
return PartialView("Details");
}
here is reference of call method call
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.