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;
I want to adapt a select2 combo
-
- Posts: 6
- Joined: 2016-10-17 01:28
- Contact: