Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1817

JQMIGRATE: jQuery.fn.attr(selected) may use property instead of attribute - jQuery 1.9

$
0
0
$('select option[value="'+oSettings._iDisplayLength+'"]', nLength).attr("selected", true);

should be

$('select option[value="'+oSettings._iDisplayLength+'"]', nLength).prop("selected", true);

When using jQuery 1.9. jQuery Migrate 1.0.0 plugin, the following message is issued when .attr("selected", true) is used:

"JQMIGRATE: jQuery.fn.attr(selected) may use property instead of attribute"

Viewing all articles
Browse latest Browse all 1817

Latest Images

Trending Articles



Latest Images