BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
function create(args) {
$("#check").ejCheckBox({ text: "Check All", change: "onallChange" });
}
function onallChange(args) {
window.flag = true;
var obj = $("#DropDownList1").ejDropDownList("instance");
if (args.isChecked) obj.checkAll();
else obj.uncheckAll();
window.flag = false;
}
How can I pass at function "onallChange" the drop down owner as parameter. Thus, this function can be generic.
<code>
function create(args) {
$(".e-dropdownlist.check").ejCheckBox({ text: "Check All", change: "onallChange" });
}
function onallChange(args) {
window.flag = true;
var obj = $("#" + this.element.parents(".e-ddl-popup").attr("id").replace("_popup_list_wrapper", "")).ejDropDownList("instance");
if (args.isChecked) obj.checkAll();
else obj.uncheckAll();
window.flag = false;
}
</code> |
<code>
[HttpPost]
public JsonResult Filtrar(List<string> ddlComunidad, List<string> ddlProvincia)
{
return Json(ddlComunidad,JsonRequestBehavior.AllowGet);
}
</code> |