  <script src="<?php echo base_url();?>assets/choosen.js"></script>
<link rel="stylesheet" href="<?php echo base_url();?>assets/style.css">





           <div class="col-lg-3 col-md-6 col-sm-12">
               <div class="form-group">
                    <label class="form-label">IN/OUT:</label>
                    <select class="form-control" required="required" id="in_out">
                        <option>Select Option</option>
                        
                        <option value="1">IN</option>
                       <!-- <option value="0">OUT SET</option> -->
                       <option value="2">OUT</option>
                    </select>
                 </div>
                </div>

             <div id="data_show"></div>

               
               
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>

     <script>
         
 $("#in_out").change(function() {

                
    
                var in_out =  this.value;
               

                $.ajax({
                            type:'POST',
                            url:'<?php echo base_url('Stock/get_inout_production'); ?>',
                            data:{in_out:in_out},
                            dataType:'json',
                            success:function(data){
                            
                                  //$('#data_show').val(data.total_qty);
                                  $('#data_show').show().html(data.html);
                                  
                            },
                            error:function(data){console.log(data.responseText);}
                        });
                   });
         
     </script>