From 318b527f087b0c6de66e2045165d22257ecf280e Mon Sep 17 00:00:00 2001 From: bitbucket Date: Sat, 6 Apr 2024 18:19:11 +0530 Subject: [PATCH] GWM:MultiDropdownSearchBox --- app/Views/sales_order_form.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/app/Views/sales_order_form.php b/app/Views/sales_order_form.php index 061eae3..8d23c69 100644 --- a/app/Views/sales_order_form.php +++ b/app/Views/sales_order_form.php @@ -26,7 +26,7 @@
- > Select a Client' ?> @@ -39,7 +39,7 @@
- @@ -106,7 +106,7 @@ if ($salechild['isactive'] == 1) : ?> - @@ -350,7 +350,7 @@ $(document).ready(function() { // Event listener for "Add More Item" button $('#addItem').click(function() { var newRow = '' + - '' + + '' + '' + '' + '' + @@ -363,6 +363,7 @@ $(document).ready(function() { ''; $('#itemTable tbody').append(newRow); + initializeSelect2(); }); // Event listener for removing item @@ -445,12 +446,17 @@ $(document).ready(function() { $(document).ready(function(){ // Initialize select2 $(".SelExample").select2(); - $(".SelExample").select2("val", "4"); }); +function initializeSelect2() { + $('.SelExample').select2({ + width: '249px' // Adjust width as needed + }); + }