diff --git a/app/Views/sales_order_form.php b/app/Views/sales_order_form.php index a823b64..d0444fd 100644 --- a/app/Views/sales_order_form.php +++ b/app/Views/sales_order_form.php @@ -26,9 +26,11 @@
+ - > + Select a Client' ?> @@ -41,7 +43,7 @@
- @@ -105,7 +107,7 @@ if ($salechild['isactive'] == 1) : ?> - @@ -380,7 +382,7 @@ $(document).ready(function() { // Event listener for "Add More Item" button $('#addItem').click(function() { var newRow = '' + - '' + + '' + '' + '' + '' + @@ -393,6 +395,7 @@ $(document).ready(function() { ''; $('#itemTable tbody').append(newRow); + initializeSelect2(); }); // Event listener for removing item @@ -475,8 +478,12 @@ $(document).ready(function() { $(document).ready(function(){ // Initialize select2 $(".SelExample").select2(); - $(".SelExample").select2("val", "4"); }); +function initializeSelect2() { + $('.SelExample').select2({ + width: '249px' // Adjust width as needed + }); + }