Reseting the dropdown in the fnDrawCallback function

Reseting the dropdown in the fnDrawCallback function

webdad3webdad3 Posts: 7Questions: 0Answers: 0
edited February 2014 in General
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]

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Can you please link to the page in question - it looks like to me either could work, but without seeing the rest of the page, I've no idea what might be going wrong!

    Allan
This discussion has been closed.