Keyup Combobox doesnt re draw table

Keyup Combobox doesnt re draw table

sharkiesharkie Posts: 2Questions: 1Answers: 0
edited July 2015 in Free community support

Hi,
I based my code from the range min-max then added a combo box which only works when I select the option from the combo box and THEN modify the min or max value

I have it set up like this

$('#max , # min,#combobox').keyup( function() {
        table.draw();
    } );

However when the combobox value changes nothing happens. (Until I modify min/max field, in which case it filters without an issue)

Unsure what I'm missing out on. Hope someone has come across this and might be able to help me out.
Thanks

Answers

  • sharkiesharkie Posts: 2Questions: 1Answers: 0
    edited July 2015

    Im not great at this, but found a workaround. Created this script:

    $('#combobox').change(function() { 
              var oTable = $("#live-tracking-table").dataTable();
    oTable.fnDraw();
           });
    

    Works for the time being, not sure how to make it work properly though! Open to suggestions

This discussion has been closed.