Reseting the dropdown in the fnDrawCallback function
Reseting the dropdown in the fnDrawCallback function
I'm trying to reset my dropdown when the grid is reloaded (from a search). I've tried 2 options (shown), but neither is working.
Any ideas on how to get this to work?
[code]
"fnDrawCallback": function (oSettings) {
$(".search_init").find('option[value="-1"]').attr("selected", true);
}
"fnDrawCallback": function (oSettings) {
$(".search_init").val("-1").change();
}
[/code]
Any ideas on how to get this to work?
[code]
"fnDrawCallback": function (oSettings) {
$(".search_init").find('option[value="-1"]').attr("selected", true);
}
"fnDrawCallback": function (oSettings) {
$(".search_init").val("-1").change();
}
[/code]
This discussion has been closed.
Replies
Allan