Page 1 of 1

I want to adapt a select2 combo

Posted: 2017-05-01 02:28
by bartvertongen
I tried this in hooks City.php , it gives no error but does nothing
I tried it in the header too

case 'tableview+detailview':
$footer='';
$footer='<script>$j(function(){';
$footer.='$j'."('#CTY_CountryCode_container').select2({";
$footer.='minimumInputLength: 1,maximumInputLength: 2,';
$footer.='matcher: function(term, text)';
$footer.='{return text.toUpperCase().indexOf(term.toUpperCase())==0;}';
$footer.='});';
$footer.='});</script>';
break;