I just started using the materialize css framework. Now, materialize converts any select tag into a collection of ul and li elements. Before, using JQuery, I was able to do this:
var $selectDropdown = $(#dropdownid);
$selectDropdown.empty();
$selectDropdown.html(' ');
var value = some value;
$selectDropdown .append($(<option></option>).attr(value,value).text(value));
My html is just a sample select tag:
Before, this was working. Now it fails. What would be an alternative for repopulating this dropdown dynamically using javascript?