Title: Datalist Background Color Post by: jmansur on March 17, 2016, 07:45:09 AM PROBLEM:
I have one datalist. And when the DataList is loaded I execute this code $('#dlDivision').datalist('checkAll'), and all options have a yellow background color . I don't want yellow background color appears ever. If I check one by one, each option appears checked , and with the white background color. I need the datalist always have white background color. How should I do ? MY CODE: function getDivisiones() { $('#dlDivision').datalist({ url: 'Ajax/GmapsFiltrosDivisiones.asp', method: 'get', textField:'Nombre', valueField: 'Codigo', singleSelect: false, onBeforeSelect: function(){return false;}, checkbox: true, lines:false, onLoadSuccess: function(data) { $('#dlDivision').datalist('checkAll'); } }); } $( document ).ready( function(){ getDivisiones(); } ); Title: Re: Datalist Background Color Post by: jarry on March 17, 2016, 08:15:25 AM Just need to set 'selectOnCheck' to false.
Code: $('#dl').datalist({ Title: Re: Datalist Background Color Post by: jmansur on March 17, 2016, 08:42:15 AM thanksssss.
Very simple. Regardsssssssssssssssssss |