Jquery with many buttons call a function with sending different parameters

I have a simple code but cant get the values of my input text. Is there any way to do this? <?php for ($i=0;$i<3;$i++){ echo (‘<input type=”text” class=”form-control” name=”vec” id=”vec’.$i.'” value=”‘.$listOfData0[$i].'”>’); echo (‘<input type=”text” class=”form-control” name=”drv” id=”drv’.$i.'” value=”‘.$listOfData1[$i].'”>’); echo (‘<button type=”button” name=”updateVecButton” id=”updateVecButton” value=”‘.$vec[$i].’,’.$vell[$i].'” onclick=”refreshVec(“‘.$i.'”,”‘.$vell[$i].'”);”></button>’); } ?> <script> function refreshVec(i,vell){ alert (i + ” “+…

Error: Cannot find module ‘jquery’ on require.resolve(‘jquery’) webpack

The problem is Error: Cannot find module ‘jquery’ When i build it with script: rm -rf dist && webpack –config webpack.config.js Already tried with another clue like external etc but still got issue on jquery Here is my package.json, { “name”: “webpack”, “version”: “1.0.0”, “description”: “”, “main”: “index.js”, “scripts”: { “build”: “rm -rf dist &&…

jQuery: ColReorder set to default order

I have my DataTables initialised as below var table = $(‘#today’).DataTable( { “ajax”: ‘/getMainData/24102019/json’, “ordering”: false, enableFiltering: true, filterPlaceholder: ‘Search for something…’, “scrollY”: 300, “scrollX”: true, “pageLength”: 500, “lengthMenu”: [[100, 1000, -1], [100, 1000, “All”]], processing: true, ‘language’:{ “loadingRecords”: “Loading …”, “processing”: “Loading …” }, “columnDefs”: [ { “targets”: [ 2,14 ], “visible”: false, “searchable”:…