diff --git a/media/src/core/core.length.js b/media/src/core/core.length.js index 60c58040..2331e07e 100644 --- a/media/src/core/core.length.js +++ b/media/src/core/core.length.js @@ -1,5 +1,4 @@ - /** * Generate the node required for user display length changing * @param {object} oSettings dataTables settings object @@ -48,7 +47,7 @@ function _fnFeatureHtmlLength ( oSettings ) * Set the length to the current display length - thanks to Andrea Pavlovic for this fix, * and Stefan Skopnik for fixing the fix! */ - $('select option[value="'+oSettings._iDisplayLength+'"]', nLength).attr("selected", true); + $('select option[value="'+oSettings._iDisplayLength+'"]', nLength).prop("selected", true); $('select', nLength).bind( 'change.DT', function(e) { var iVal = $(this).val();