Without alert() filter dropdownlist menu not feeling.
Without alert() filter dropdownlist menu not feeling.
Hello All,
I am working on ASP.Net MVC and JQuery. And using JQuery DataTable. But in one of the JQuery script,
I need to add alert() function then only the script get run other wise script not get run. I am not getting actual problem and have googled a lot still didn't get solution so please help me for the same.
This is my code:
[code]
$("#dvddl div").each(function (i) {
this.innerHTML = this.innerHTML + fnCreateSelect(oTable.fnGetColumnData(i));
alert(i);
/*THIS IS THAT ALERT WHICH WE NEED TO ADD IN THIS CODE OTHER WISE (select)CONTROLS NOT GET LOAD*/
$('select', this).change(function () {
oTable.fnFilter($(this).val(), i);
});
});
[/code]
I am working on ASP.Net MVC and JQuery. And using JQuery DataTable. But in one of the JQuery script,
I need to add alert() function then only the script get run other wise script not get run. I am not getting actual problem and have googled a lot still didn't get solution so please help me for the same.
This is my code:
[code]
$("#dvddl div").each(function (i) {
this.innerHTML = this.innerHTML + fnCreateSelect(oTable.fnGetColumnData(i));
alert(i);
/*THIS IS THAT ALERT WHICH WE NEED TO ADD IN THIS CODE OTHER WISE (select)CONTROLS NOT GET LOAD*/
$('select', this).change(function () {
oTable.fnFilter($(this).val(), i);
});
});
[/code]
This discussion has been closed.