gsr
06/20/2022, 5:46 PM<cfselect class="Select" style="width: 75%" name="Sales" query="qry" value="SaleID" display="Title" selected="#SelectedValue#" />
<script>
$('.Select').select2({
placeholder: 'Select Sales',
allowClear: true
});
</script>
So my plan is to replace cfselect with normal select and use it, but should i convert this into a custom tag or cffunction so i can reuse it all the places i neededMyka Forrest
06/20/2022, 7:08 PMgsr
06/20/2022, 7:16 PMMyka Forrest
06/20/2022, 7:18 PMgsr
06/20/2022, 7:33 PMMyka Forrest
06/20/2022, 7:34 PMScott Steinbeck
06/20/2022, 8:03 PMcfselect
’s functionality, but instead using jquery’s Select2.
That being said, arguably neither solution is a good one since you would be including a javascript dependency in a CFML custom tag. which we have seen go bad with built in features such as cfajax
Myka Forrest
06/22/2022, 12:55 PMgsr
06/22/2022, 12:57 PM