I have this MVC control this is my control
@Html.Obout(new Obout.Mvc.ComboBox.ComboBox("Country")
{
SelectedIndex = 0,
ShowSelectedImage = true,
ClientSideEvents = new ComboBoxClientSideEvents()
{
OnSelectedIndexChanged = "checkalert"
},
OnSelectedIndexChanged="checkalert",
ID = "Country1",
FolderStyle = "~/Content/Obout/ComboBox/styles/plain",
FilterType = Obout.Mvc.ComboBox.ComboBoxFilterType.Contains,
Width = 150,
Height = 200,
MenuWidth = 640
})
and this is my js function:
function checkalert() {
debugger;
alert(" change");
return '1';
}
I have an error that
Uncaught ReferenceError: checkalert is not defined
I need a checkalert()
function triggered when selected index changed