@section('javascript_special') var ddData = [ { text: "Bianco", value: 1, selected: {{(strtoupper($postazione->TCCPColore) == "BIANCO")?'true':'false'}}, description: "iPad di colore BIANCO", imageSrc: "/img/ipad-white.png" }, { text: "Nero", value: 2, selected: {{(strtoupper($postazione->TCCPColore) == "NERO")?'true':'false'}}, description: "iPad di colore NERO", imageSrc: "/img/ipad-black.png" } ]; $('#ipad-colore').ddslick({ data:ddData, width:300, selectText: "Scegli il colore dell'iPad", imagePosition:"right", onSelected: function(selectedData) { // invio il colore scelto $('input[name="colore"]').val(selectedData.selectedData.text); } }); @stop